aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-09io: add read_i8_into to ReadBytesExtJim Turner
The `read_i8_into` method is useful for client code that wants to avoid `unsafe`. PR #147
2019-05-01test: check examples in READMEGuillaume Gomez
PR #146
2019-03-04doc: fix overflowing literals in doc testsAndrew Gallant
These were likely a result of copy & pasting example code. There is actually an overflowing literal lint that would normally catch this, but doc tests do not need to output lint warnings by default. Rust 2018 made overflowing literals deny-by-default, and Rust 2015 just recently did the same---even though it's a breaking change. That in turn caused the doc tests to fail, and thus, we finally noticed it. Fixes #144
2019-01-221.3.1Andrew Gallant
2019-01-22build: add back support for Rust 1.12Trevor Spiteri
In older versions of Rust, the build.rs file is not auto-detected, so we add it to the Cargo.toml. Moreover, the existing build.rs was not compatible with older Rust versions because of the use of eprintln! and short-hand struct initialization. We fix that. Closes #140, Closes #141
2019-01-191.3.0Andrew Gallant
2019-01-19changelog: add 1.3 notes and backfill othersAndrew Gallant
2019-01-19api: deprecate ByteOrder::read_{f32,f64}_into_uncheckedAndrew Gallant
I had intended to deprecate these in the 1.2 release, along with the corresponding methods on ReadBytesExt/WriteBytesExt, but missed them.
2019-01-19doc: remove overflowing literalsAndrew Gallant
It was a copy & paste error. Fixes #123
2019-01-19i128: enable support for 128-bit integers automaticallyAndrew Gallant
This adds a build.rs to byteorder that will set a conditional compilation flag automatically if the current Rust compiler supports 128-bit integers. This makes the i128 feature itself a no-op. We continue to allow the feature to be supplied for backwards compatibility. Addresses https://github.com/TyOverby/bincode/issues/250
2019-01-19deps: update quickcheck and randAndrew Gallant
Fixes #127
2018-12-04ci: fix [ syntax to run cross CI as cross compilation. (#135)Huon Wilson
Previously the [ was just failing with: +[ ! z mips64-unknown-linux-gnuabi64 ] ci/script.sh: 7: [: z: unexpected operator and thus falling through to the `cargo` version. Fixes #134
2018-10-261.2.7Andrew Gallant
2018-10-26ci: exclude CI filesIgor Gnatenko
PR #133
2018-10-08cargo: use OR in the license fieldArtyom Pavlov
PR #131
2018-08-251.2.6Andrew Gallant
2018-08-25deps: more updates in test code for rand 0.4 -> 0.5Andrew Gallant
2018-08-251.2.5Andrew Gallant
2018-08-25deps: update to quickcheck 0.7Andrew Gallant
Our dev-dependencies already pushed us over the minimum Rust version supported (1.12.0), so we continue with the status quo of only testing on stable/beta/nightly, but ensure that we continue to build on Rust 1.12.0.
2018-07-31byteorder: fix typos in ReadBytesExt docsfpgaminer
Closes #129
2018-07-31byteorder: add doc tests for WriteBytesExt methodsfpgaminer
Closes #129
2018-07-301.2.4Andrew Gallant
2018-07-30byteorder: add {u,i}48 methodsfpgaminer
PR #128
2018-05-12changelog: updates for 1.2.2 and 1.2.3Andrew Gallant
2018-05-121.2.3Andrew Gallant
2018-05-12i128: get rid of i128 Rust featureLee Bousfield
We no longer need to enable the i128 Rust feature, since it is stabilized. We leave byteorder's i128 feature in tact to preserve compilation on Rust 1.12.
2018-04-04doc: remove unnecessary cfg in examplesAndrew Gallant
Fixes #120
2018-04-04remove unnecessary cfg in examplesTrevor Spiteri
2018-04-011.2.2Andrew Gallant
2018-04-01doc: miscellaneous improvementsBruce Mitchener
2018-04-01style: remove all uses of transmuteAndrew Gallant
We should have done this from the start. Everything can be accomplished via pointer casts. Benchmarks show negligible differences.
2018-04-01style: remove unnecessary mutAndrew Gallant
2018-03-22clippy: fix a couple of markdown warningsBruce Mitchener
2017-12-31ci: fix it and reorgnanizeAndrew Gallant
This reorganizes CI. The principle change is that we no longer run tests on Rust 1.12. Instead, we just check that it builds.
2017-12-31Add MIPS64 cross-compliation target to TravisEduardo Pinho
2017-12-31deps: bump quickcheck to 0.6 and rand to 0.4Igor Gnatenko
2017-12-08Use depcrated tag instead of pure documentationMarcel Hellwig
Since nearly 2 years, there is a depcrated attribute, which can be used https://github.com/rust-lang/rfcs/blob/master/text/1270-deprecation.md
2017-11-30bump quickcheck to 0.5Igor Gnatenko
2017-11-291.2.1Andrew Gallant
2017-11-29remove more unsafeAndrew Gallant
This removes the `unsafe` annotation from `read_{f32,f64}_into_unchecked` and deprecates the methods because the `unchecked` name is no longer appropriate. We in turn add `read_{f32,f64}_into` methods.
2017-11-291.2.0Andrew Gallant
2017-11-29remove unnecessary unsafeAndrew Gallant
See also #105 Fixes #103
2017-11-29remove now-irrelevant snan testAlexis Beingessner
2017-11-29make int->float conversion a transmuteAlexis Beingessner
This is the mirror commit to https://github.com/rust-lang/rust/pull/46012
2017-11-29Fix prop_ext_[u]int_*::native_endian on BE targetsJosh Stone
The similar `big_endian` tests were using an offset to read from the end of the written `u64`, but the `native_endian` tests were reading directly, just like the `little_endian` tests. That's of course only correct when the target actually is little endian. That `big_endian` offset is now sliced directly, instead of cloning into another vector, and then this logic is also used in the `native_endian` test, depending on the current `#[cfg(target_endian)]`. Fixes #102.
2017-10-29Use SVG for Travis badgeNikolai Vazquez
PNG looks pixelated on Apple's retina screens.
2017-07-25Cleanup CI badgeMartin Geisler
The `repository` key only takes the username and repository name, not a full URL (the default `service` is GitHub). The `branch` key defaults to `master` so I removed it for simplicity.
2017-07-091.1.0Andrew Gallant
2017-07-09do not run benchmarksAndrew Gallant
They take forever, and nobody ever looks at the output anyway. Just making sure they compile is enough.
2017-07-09fix travisAndrew Gallant