mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
c8e4909559
--HG-- rename : third_party/rust/nom/.cargo-checksum.json => third_party/rust/nom-3.2.1/.cargo-checksum.json rename : third_party/rust/nom/CHANGELOG.md => third_party/rust/nom-3.2.1/CHANGELOG.md rename : third_party/rust/nom/Cargo.toml => third_party/rust/nom-3.2.1/Cargo.toml rename : third_party/rust/nom/src/bits.rs => third_party/rust/nom-3.2.1/src/bits.rs rename : third_party/rust/nom/src/branch.rs => third_party/rust/nom-3.2.1/src/branch.rs rename : third_party/rust/nom/src/bytes.rs => third_party/rust/nom-3.2.1/src/bytes.rs rename : third_party/rust/nom/src/character.rs => third_party/rust/nom-3.2.1/src/character.rs rename : third_party/rust/nom/src/internal.rs => third_party/rust/nom-3.2.1/src/internal.rs rename : third_party/rust/nom/src/lib.rs => third_party/rust/nom-3.2.1/src/lib.rs rename : third_party/rust/nom/src/macros.rs => third_party/rust/nom-3.2.1/src/macros.rs rename : third_party/rust/nom/src/methods.rs => third_party/rust/nom-3.2.1/src/methods.rs rename : third_party/rust/nom/src/multi.rs => third_party/rust/nom-3.2.1/src/multi.rs rename : third_party/rust/nom/src/nom.rs => third_party/rust/nom-3.2.1/src/nom.rs rename : third_party/rust/nom/src/regexp.rs => third_party/rust/nom-3.2.1/src/regexp.rs rename : third_party/rust/nom/src/sequence.rs => third_party/rust/nom-3.2.1/src/sequence.rs rename : third_party/rust/nom/src/simple_errors.rs => third_party/rust/nom-3.2.1/src/simple_errors.rs rename : third_party/rust/nom/src/str.rs => third_party/rust/nom-3.2.1/src/str.rs rename : third_party/rust/nom/src/stream.rs => third_party/rust/nom-3.2.1/src/stream.rs rename : third_party/rust/nom/src/traits.rs => third_party/rust/nom-3.2.1/src/traits.rs rename : third_party/rust/nom/src/util.rs => third_party/rust/nom-3.2.1/src/util.rs rename : third_party/rust/nom/src/verbose_errors.rs => third_party/rust/nom-3.2.1/src/verbose_errors.rs rename : third_party/rust/nom/src/whitespace.rs => third_party/rust/nom-3.2.1/src/whitespace.rs rename : third_party/rust/nom/tests/arithmetic.rs => third_party/rust/nom-3.2.1/tests/arithmetic.rs rename : third_party/rust/nom/tests/arithmetic_ast.rs => third_party/rust/nom-3.2.1/tests/arithmetic_ast.rs rename : third_party/rust/nom/tests/blockbuf-arithmetic.rs => third_party/rust/nom-3.2.1/tests/blockbuf-arithmetic.rs rename : third_party/rust/nom/tests/cross_function_backtracking.rs => third_party/rust/nom-3.2.1/tests/cross_function_backtracking.rs rename : third_party/rust/nom/tests/float.rs => third_party/rust/nom-3.2.1/tests/float.rs rename : third_party/rust/nom/tests/ini.rs => third_party/rust/nom-3.2.1/tests/ini.rs rename : third_party/rust/nom/tests/ini_str.rs => third_party/rust/nom-3.2.1/tests/ini_str.rs rename : third_party/rust/nom/tests/issues.rs => third_party/rust/nom-3.2.1/tests/issues.rs rename : third_party/rust/nom/tests/json.rs => third_party/rust/nom-3.2.1/tests/json.rs rename : third_party/rust/nom/tests/mp4.rs => third_party/rust/nom-3.2.1/tests/mp4.rs rename : third_party/rust/nom/tests/multiline.rs => third_party/rust/nom-3.2.1/tests/multiline.rs rename : third_party/rust/nom/tests/named_args.rs => third_party/rust/nom-3.2.1/tests/named_args.rs rename : third_party/rust/nom/tests/omnom.rs => third_party/rust/nom-3.2.1/tests/omnom.rs rename : third_party/rust/nom/tests/overflow.rs => third_party/rust/nom-3.2.1/tests/overflow.rs rename : third_party/rust/nom/tests/reborrow_fold.rs => third_party/rust/nom-3.2.1/tests/reborrow_fold.rs rename : third_party/rust/nom/tests/test1.rs => third_party/rust/nom-3.2.1/tests/test1.rs |
||
---|---|---|
.. | ||
src | ||
.cargo_vcs_info.json | ||
.cargo-checksum.json | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
README.md |
bindgen
impl period
has been started! Join us at Gitter.im.
bindgen
automatically generates Rust FFI bindings to C (and some C++) libraries.
For example, given the C header doggo.h
:
typedef struct Doggo {
int many;
char wow;
} Doggo;
void eleven_out_of_ten_majestic_af(Doggo* pupper);
bindgen
produces Rust FFI code allowing you to call into the doggo
library's
functions and use its types:
/* automatically generated by rust-bindgen */
#[repr(C)]
pub struct Doggo {
pub many: ::std::os::raw::c_int,
pub wow: ::std::os::raw::c_char,
}
extern "C" {
pub fn eleven_out_of_ten_majestic_af(pupper: *mut Doggo);
}
Users Guide
📚 Read the bindgen
users guide here! 📚
API Reference
API reference documentation is on docs.rs