mirror of https://git.sr.ht/~stygianentity/bincode
* tests: fix alloc range test on 32-bit Windows This test checks the range, which is necessarily different when running on another platform. Signed-off-by: Sean Cross <sean@xobs.io> * enc: case usize/isize as u64/i64 in serialization The deserialization process assumes that usize/isize are 64-bits, as does the spec at https://github.com/bincode-org/bincode/blob/trunk/docs/spec.md#varintencoding Force `usize` and `isize` to be encoded as `u64` and `i64` to force 32-bit platforms to conform to this spec. This fixes running tests under `cargo test --target i686-pc-windows-msvc` Signed-off-by: Sean Cross <sean@xobs.io> * atomic: only provide Atomic*64 on supported platforms Not all platforms support AtomicI64 or AtomicU64. Use the `target_has_atomic` config flag to determine whether to include these. This fixes #532. Signed-off-by: Sean Cross <sean@xobs.io> * atomic: remove feature and use new attributes Now that there is an attribute to indicate which atomic features are supported on this platform, remove the `atomic` Feature and use these new attributes. Signed-off-by: Sean Cross <sean@xobs.io> * alloc: run `cargo fmt` Signed-off-by: Sean Cross <sean@xobs.io> |
||
|---|---|---|
| .. | ||
| de | ||
| enc | ||
| features | ||
| varint | ||
| atomic.rs | ||
| config.rs | ||
| error.rs | ||
| lib.rs | ||
| utils.rs | ||