bcachefs-tools/rust-src/bch_bindgen
TruongSinh Tran-Nguyen c1a8e27a3f chore(rust): add opt_get! and expose some FMODE_* as Rust const
In an effort to rewrite `bch2_read_super` from C to Rust,
it is neccessary to have `opt_get!` macro defined, and some
FMODE_* consts (defined as macro in `include/linux/blkdev.h`)
defined as Rust const.

Bindgen is currently unable to exapnd C functional macro [1],
this this commit use the workaround as introduced in [2].

[1] https://github.com/rust-lang/rust-bindgen/issues/753
[2] https://github.com/rust-lang/rust-bindgen/issues/753#issuecomment-608546390

Signed-off-by: TruongSinh Tran-Nguyen <i@truongsinh.pro>
2023-04-27 19:23:17 -04:00
..
src chore(rust): add opt_get! and expose some FMODE_* as Rust const 2023-04-27 19:23:17 -04:00
.gitignore split mount into a library crate for rust reuse 2021-10-18 16:30:52 -04:00
build.rs chore(rust): add opt_get! and expose some FMODE_* as Rust const 2023-04-27 19:23:17 -04:00
Cargo.lock rust: Filesystem options now supported 2023-02-28 06:15:48 -05:00
Cargo.toml rust: Filesystem options now supported 2023-02-28 06:15:48 -05:00
rustfmt.toml rust: use rustfmt defaults 2023-01-16 09:24:01 +01:00