1. 18 11月, 2014 1 次提交
    • D
      implement Writer for Vec<u8> · 85c2c2e3
      Daniel Micay 提交于
      The trait has an obvious, sensible implementation directly on vectors so
      the MemWriter wrapper is unnecessary. This will halt the trend towards
      providing all of the vector methods on MemWriter along with eliminating
      the noise caused by conversions between the two types. It also provides
      the useful default Writer methods on Vec<u8>.
      
      After the type is removed and code has been migrated, it would make
      sense to add a new implementation of MemWriter with seeking support. The
      simple use cases can be covered with vectors alone, and ones with the
      need for seeks can use a new MemWriter implementation.
      85c2c2e3
  2. 03 11月, 2014 1 次提交
    • A
      refactor libcollections as part of collection reform · 112c8a96
      Alexis Beingessner 提交于
      * Moves multi-collection files into their own directory, and splits them into seperate files
      * Changes exports so that each collection has its own module
      * Adds underscores to public modules and filenames to match standard naming conventions
      
      (that is, treemap::{TreeMap, TreeSet} => tree_map::TreeMap, tree_set::TreeSet)
      
      * Renames PriorityQueue to BinaryHeap
      * Renames SmallIntMap to VecMap
      * Miscellanious fallout fixes
      
      [breaking-change]
      112c8a96
  3. 15 8月, 2014 1 次提交
  4. 31 7月, 2014 1 次提交
    • E
      remove serialize::ebml, add librbml · e1dcbefe
      Erick Tryzelaar 提交于
      Our implementation of ebml has diverged from the standard in order
      to better serve the needs of the compiler, so it doesn't make much
      sense to call what we have ebml anyore. Furthermore, our implementation
      is pretty crufty, and should eventually be rewritten into a format
      that better suits the needs of the compiler. This patch factors out
      serialize::ebml into librbml, otherwise known as the Really Bad
      Markup Language. This is a stopgap library that shouldn't be used
      by end users, and will eventually be replaced by something better.
      
      [breaking-change]
      e1dcbefe
  5. 27 7月, 2014 1 次提交
  6. 31 5月, 2014 1 次提交
    • K
      lib{serialize, uuid}: Fix snake case errors. · ed5bf662
      Kevin Butler 提交于
      A number of functions/methods have been moved or renamed to align
      better with rust standard conventions.
      
      serialize::ebml::reader::Doc => seriaize::ebml::Doc::new
      serialize::ebml::reader::Decoder => Decoder::new
      serialize::ebml::writer::Encoder => Encoder::new
      
      [breaking-change]
      ed5bf662
  7. 14 4月, 2014 1 次提交
  8. 07 4月, 2014 1 次提交
  9. 21 3月, 2014 1 次提交
  10. 26 2月, 2014 1 次提交
    • A
      test: Clean out the test suite a bit · 9cc26cfd
      Alex Crichton 提交于
      This updates a number of ignore-test tests, and removes a few completely
      outdated tests due to the feature being tested no longer being supported.
      
      This brings a number of bench/shootout tests up to date so they're compiling
      again. I make no claims to the performance of these benchmarks, it's just nice
      to not have bitrotted code.
      
      Closes #2604
      Closes #9407
      9cc26cfd
  11. 21 2月, 2014 1 次提交
  12. 15 2月, 2014 1 次提交
  13. 12 2月, 2014 1 次提交
  14. 06 2月, 2014 1 次提交
    • J
      pull extra::{serialize, ebml} into a separate libserialize crate · b8852e89
      Jeff Olson 提交于
      - `extra::json` didn't make the cut, because of `extra::json` required
         dep on `extra::TreeMap`. If/when `extra::TreeMap` moves out of `extra`,
         then `extra::json` could move into `serialize`
      - `libextra`, `libsyntax` and `librustc` depend on the newly created
        `libserialize`
      - The extensions to various `extra` types like `DList`, `RingBuf`, `TreeMap`
        and `TreeSet` for `Encodable`/`Decodable` were moved into the respective
        modules in `extra`
      - There is some trickery, evident in `src/libextra/lib.rs` where a stub
        of `extra::serialize` is set up (in `src/libextra/serialize.rs`) for
        use in the stage0 build, where the snapshot rustc is still making
        deriving for `Encodable` and `Decodable` point at extra. Big props to
        @huonw for help working out the re-export solution for this
      
      extra: inline extra::serialize stub
      
      fix stuff clobbered in rebase + don't reexport serialize::serialize
      
      no more globs in libserialize
      
      syntax: fix import of libserialize traits
      
      librustc: fix bad imports in encoder/decoder
      
      add serialize dep to librustdoc
      
      fix failing run-pass tests w/ serialize dep
      
      adjust uuid dep
      
      more rebase de-clobbering for libserialize
      
      fixing tests, pushing libextra dep into cfg(test)
      
      fix doc code in extra::json
      
      adjust index.md links to serialize and uuid library
      b8852e89
  15. 01 2月, 2014 1 次提交
  16. 18 1月, 2014 1 次提交
    • A
      Tweak the interface of std::io · 295b46fc
      Alex Crichton 提交于
      * Reexport io::mem and io::buffered structs directly under io, make mem/buffered
        private modules
      * Remove with_mem_writer
      * Remove DEFAULT_CAPACITY and use DEFAULT_BUF_SIZE (in io::buffered)
      295b46fc
  17. 09 1月, 2014 1 次提交
    • A
      Remove the io::Decorator trait · 6df57ec2
      Alex Crichton 提交于
      This is just an unnecessary trait that no one's ever going to parameterize over
      and it's more useful to just define the methods directly on the types
      themselves. The implementors of this type almost always don't want
      inner_mut_ref() but they're forced to define it as well.
      6df57ec2
  18. 04 1月, 2014 1 次提交
  19. 20 12月, 2013 1 次提交
    • A
      Purge @-boxes from the reading half of EBML · 73fceca7
      Alex Crichton 提交于
      Now that the metadata is an owned value with a lifetime of a borrowed byte
      slice, it's possible to have future optimizations where the metadata doesn't
      need to be copied around (very expensive operation).
      73fceca7
  20. 16 12月, 2013 1 次提交
  21. 21 7月, 2013 1 次提交
  22. 17 6月, 2013 1 次提交
  23. 15 6月, 2013 1 次提交
  24. 31 5月, 2013 1 次提交
  25. 30 5月, 2013 1 次提交
  26. 23 5月, 2013 1 次提交
  27. 03 5月, 2013 1 次提交
  28. 20 4月, 2013 2 次提交
  29. 11 4月, 2013 1 次提交
  30. 30 3月, 2013 1 次提交
  31. 29 3月, 2013 1 次提交
  32. 23 3月, 2013 1 次提交
  33. 22 3月, 2013 1 次提交
  34. 12 3月, 2013 1 次提交
  35. 08 3月, 2013 1 次提交
  36. 03 3月, 2013 1 次提交
  37. 22 2月, 2013 1 次提交
  38. 21 2月, 2013 1 次提交
  39. 15 2月, 2013 1 次提交