diff options
author | David Tolnay <dtolnay@chromium.org> | 2018-12-18 16:26:50 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-03 15:04:22 -0800 |
commit | f71764228adea535188cf37a521b5b673a107b5d (patch) | |
tree | 322d31e6730a31f2f47c34080d6bd40a6d45bc29 /Cargo.toml | |
parent | c13a68eecb6a813a5c979ec52b09e795c1da7493 (diff) | |
download | crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar.gz crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar.bz2 crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar.lz crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar.xz crosvm-f71764228adea535188cf37a521b5b673a107b5d.tar.zst crosvm-f71764228adea535188cf37a521b5b673a107b5d.zip |
bitfield: Documentation and simplifications
Changes in this CL: - Crate-level documentation for bit_field crate! - Use absolute paths within generated code so that the caller is no longer required to have various implementation details from the bit_field crate in scope. - Check that the total number of bits is a multiple of 8. Previously, it would generate compilable code that panicked when invoking accessors. - Provide B0 .. B64 as shorthand for BitField0 .. BitField64. - Use `bool` as the bool specifier rather than BitFieldBool. - Disallow BitFieldSpecifier impls outside the bit_field crate. - Simplify declaration of the BitFieldN types by replacing the recursive macro_rules with a simpler procedural macro. TEST=`cargo test` in bit_field and in bit_field_derive Change-Id: Ica9347bc89901de85f74366edd038fb5d8042ee6 Reviewed-on: https://chromium-review.googlesource.com/1382578 Commit-Ready: David Tolnay <dtolnay@chromium.org> Tested-by: David Tolnay <dtolnay@chromium.org> Reviewed-by: Jingkui Wang <jkwang@google.com>
Diffstat (limited to 'Cargo.toml')
0 files changed, 0 insertions, 0 deletions