gecko-dev/third_party/rust/bindgen-0.29.1
Emilio Cobos Álvarez 1fd7fc90ca No bug - Revendor rust dependencies. r=me
MozReview-Commit-ID: 5t9KFJN5yDQ


--HG--
rename : third_party/rust/bindgen-0.29.0/.github/ISSUE_TEMPLATE.md => third_party/rust/bindgen-0.29.1/.github/ISSUE_TEMPLATE.md
rename : third_party/rust/bindgen-0.29.0/.travis.yml => third_party/rust/bindgen-0.29.1/.travis.yml
rename : third_party/rust/bindgen-0.29.0/CONTRIBUTING.md => third_party/rust/bindgen-0.29.1/CONTRIBUTING.md
rename : third_party/rust/bindgen-0.29.0/LICENSE => third_party/rust/bindgen-0.29.1/LICENSE
rename : third_party/rust/bindgen-0.29.0/README.md => third_party/rust/bindgen-0.29.1/README.md
rename : third_party/rust/bindgen-0.29.0/appveyor.yml => third_party/rust/bindgen-0.29.1/appveyor.yml
rename : third_party/rust/bindgen-0.29.0/book/book.toml => third_party/rust/bindgen-0.29.1/book/book.toml
rename : third_party/rust/bindgen-0.29.0/book/src/SUMMARY.md => third_party/rust/bindgen-0.29.1/book/src/SUMMARY.md
rename : third_party/rust/bindgen-0.29.0/book/src/blacklisting.md => third_party/rust/bindgen-0.29.1/book/src/blacklisting.md
rename : third_party/rust/bindgen-0.29.0/book/src/chapter_1.md => third_party/rust/bindgen-0.29.1/book/src/chapter_1.md
rename : third_party/rust/bindgen-0.29.0/book/src/command-line-usage.md => third_party/rust/bindgen-0.29.1/book/src/command-line-usage.md
rename : third_party/rust/bindgen-0.29.0/book/src/cpp.md => third_party/rust/bindgen-0.29.1/book/src/cpp.md
rename : third_party/rust/bindgen-0.29.0/book/src/customizing-generated-bindings.md => third_party/rust/bindgen-0.29.1/book/src/customizing-generated-bindings.md
rename : third_party/rust/bindgen-0.29.0/book/src/introduction.md => third_party/rust/bindgen-0.29.1/book/src/introduction.md
rename : third_party/rust/bindgen-0.29.0/book/src/library-usage.md => third_party/rust/bindgen-0.29.1/book/src/library-usage.md
rename : third_party/rust/bindgen-0.29.0/book/src/nocopy.md => third_party/rust/bindgen-0.29.1/book/src/nocopy.md
rename : third_party/rust/bindgen-0.29.0/book/src/opaque.md => third_party/rust/bindgen-0.29.1/book/src/opaque.md
rename : third_party/rust/bindgen-0.29.0/book/src/replacing-types.md => third_party/rust/bindgen-0.29.1/book/src/replacing-types.md
rename : third_party/rust/bindgen-0.29.0/book/src/requirements.md => third_party/rust/bindgen-0.29.1/book/src/requirements.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-0.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-0.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-1.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-1.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-2.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-2.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-3.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-3.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-4.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-4.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-5.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-5.md
rename : third_party/rust/bindgen-0.29.0/book/src/tutorial-6.md => third_party/rust/bindgen-0.29.1/book/src/tutorial-6.md
rename : third_party/rust/bindgen-0.29.0/book/src/using-unions.md => third_party/rust/bindgen-0.29.1/book/src/using-unions.md
rename : third_party/rust/bindgen-0.29.0/book/src/whitelisting.md => third_party/rust/bindgen-0.29.1/book/src/whitelisting.md
rename : third_party/rust/bindgen-0.29.0/build.rs => third_party/rust/bindgen-0.29.1/build.rs
rename : third_party/rust/bindgen-0.29.0/ci/assert-docs.sh => third_party/rust/bindgen-0.29.1/ci/assert-docs.sh
rename : third_party/rust/bindgen-0.29.0/ci/assert-no-diff.bat => third_party/rust/bindgen-0.29.1/ci/assert-no-diff.bat
rename : third_party/rust/bindgen-0.29.0/ci/assert-no-diff.sh => third_party/rust/bindgen-0.29.1/ci/assert-no-diff.sh
rename : third_party/rust/bindgen-0.29.0/ci/assert-rustfmt.sh => third_party/rust/bindgen-0.29.1/ci/assert-rustfmt.sh
rename : third_party/rust/bindgen-0.29.0/ci/before_install.sh => third_party/rust/bindgen-0.29.1/ci/before_install.sh
rename : third_party/rust/bindgen-0.29.0/ci/deploy-book.sh => third_party/rust/bindgen-0.29.1/ci/deploy-book.sh
rename : third_party/rust/bindgen-0.29.0/ci/no-includes.sh => third_party/rust/bindgen-0.29.1/ci/no-includes.sh
rename : third_party/rust/bindgen-0.29.0/ci/test-book.sh => third_party/rust/bindgen-0.29.1/ci/test-book.sh
rename : third_party/rust/bindgen-0.29.0/ci/test.bat => third_party/rust/bindgen-0.29.1/ci/test.bat
rename : third_party/rust/bindgen-0.29.0/ci/test.sh => third_party/rust/bindgen-0.29.1/ci/test.sh
rename : third_party/rust/bindgen-0.29.0/example-graphviz-ir.png => third_party/rust/bindgen-0.29.1/example-graphviz-ir.png
rename : third_party/rust/bindgen-0.29.0/rustfmt.toml => third_party/rust/bindgen-0.29.1/rustfmt.toml
rename : third_party/rust/bindgen-0.29.0/src/callbacks.rs => third_party/rust/bindgen-0.29.1/src/callbacks.rs
rename : third_party/rust/bindgen-0.29.0/src/clang.rs => third_party/rust/bindgen-0.29.1/src/clang.rs
rename : third_party/rust/bindgen-0.29.0/src/codegen/error.rs => third_party/rust/bindgen-0.29.1/src/codegen/error.rs
rename : third_party/rust/bindgen-0.29.0/src/codegen/helpers.rs => third_party/rust/bindgen-0.29.1/src/codegen/helpers.rs
rename : third_party/rust/bindgen-0.29.0/src/codegen/mod.rs => third_party/rust/bindgen-0.29.1/src/codegen/mod.rs
rename : third_party/rust/bindgen-0.29.0/src/codegen/struct_layout.rs => third_party/rust/bindgen-0.29.1/src/codegen/struct_layout.rs
rename : third_party/rust/bindgen-0.29.0/src/extra_assertions.rs => third_party/rust/bindgen-0.29.1/src/extra_assertions.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/analysis/derive_debug.rs => third_party/rust/bindgen-0.29.1/src/ir/analysis/derive_debug.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/analysis/has_vtable.rs => third_party/rust/bindgen-0.29.1/src/ir/analysis/has_vtable.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/analysis/mod.rs => third_party/rust/bindgen-0.29.1/src/ir/analysis/mod.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/analysis/template_params.rs => third_party/rust/bindgen-0.29.1/src/ir/analysis/template_params.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/annotations.rs => third_party/rust/bindgen-0.29.1/src/ir/annotations.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/comment.rs => third_party/rust/bindgen-0.29.1/src/ir/comment.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/comp.rs => third_party/rust/bindgen-0.29.1/src/ir/comp.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/context.rs => third_party/rust/bindgen-0.29.1/src/ir/context.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/derive.rs => third_party/rust/bindgen-0.29.1/src/ir/derive.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/dot.rs => third_party/rust/bindgen-0.29.1/src/ir/dot.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/enum_ty.rs => third_party/rust/bindgen-0.29.1/src/ir/enum_ty.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/function.rs => third_party/rust/bindgen-0.29.1/src/ir/function.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/int.rs => third_party/rust/bindgen-0.29.1/src/ir/int.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/item.rs => third_party/rust/bindgen-0.29.1/src/ir/item.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/item_kind.rs => third_party/rust/bindgen-0.29.1/src/ir/item_kind.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/layout.rs => third_party/rust/bindgen-0.29.1/src/ir/layout.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/mod.rs => third_party/rust/bindgen-0.29.1/src/ir/mod.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/module.rs => third_party/rust/bindgen-0.29.1/src/ir/module.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/objc.rs => third_party/rust/bindgen-0.29.1/src/ir/objc.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/template.rs => third_party/rust/bindgen-0.29.1/src/ir/template.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/traversal.rs => third_party/rust/bindgen-0.29.1/src/ir/traversal.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/ty.rs => third_party/rust/bindgen-0.29.1/src/ir/ty.rs
rename : third_party/rust/bindgen-0.29.0/src/ir/var.rs => third_party/rust/bindgen-0.29.1/src/ir/var.rs
rename : third_party/rust/bindgen-0.29.0/src/log_stubs.rs => third_party/rust/bindgen-0.29.1/src/log_stubs.rs
rename : third_party/rust/bindgen-0.29.0/src/main.rs => third_party/rust/bindgen-0.29.1/src/main.rs
rename : third_party/rust/bindgen-0.29.0/src/options.rs => third_party/rust/bindgen-0.29.1/src/options.rs
rename : third_party/rust/bindgen-0.29.0/src/parse.rs => third_party/rust/bindgen-0.29.1/src/parse.rs
rename : third_party/rust/bindgen-0.29.0/src/regex_set.rs => third_party/rust/bindgen-0.29.1/src/regex_set.rs
rename : third_party/rust/bindgen-0.29.0/src/uses.rs => third_party/rust/bindgen-0.29.1/src/uses.rs
rename : third_party/rust/clang-sys/.cargo-checksum.json => third_party/rust/clang-sys-0.19.0/.cargo-checksum.json
rename : third_party/rust/clang-sys/.travis.yml => third_party/rust/clang-sys-0.19.0/.travis.yml
rename : third_party/rust/clang-sys/CHANGELOG.md => third_party/rust/clang-sys-0.19.0/CHANGELOG.md
rename : third_party/rust/clang-sys/Cargo.toml => third_party/rust/clang-sys-0.19.0/Cargo.toml
rename : third_party/rust/clang-sys/README.md => third_party/rust/clang-sys-0.19.0/README.md
rename : third_party/rust/clang-sys/appveyor.yml => third_party/rust/clang-sys-0.19.0/appveyor.yml
rename : third_party/rust/clang-sys/build.rs => third_party/rust/clang-sys-0.19.0/build.rs
rename : third_party/rust/clang-sys/ci/before_install.sh => third_party/rust/clang-sys-0.19.0/ci/before_install.sh
rename : third_party/rust/clang-sys/ci/script.sh => third_party/rust/clang-sys-0.19.0/ci/script.sh
rename : third_party/rust/clang-sys/src/lib.rs => third_party/rust/clang-sys-0.19.0/src/lib.rs
rename : third_party/rust/clang-sys/src/link.rs => third_party/rust/clang-sys-0.19.0/src/link.rs
rename : third_party/rust/clang-sys/src/support.rs => third_party/rust/clang-sys-0.19.0/src/support.rs
rename : third_party/rust/clang-sys/tests/lib.rs => third_party/rust/clang-sys-0.19.0/tests/lib.rs
2017-10-12 18:20:31 +02:00
..
.github
book
ci
src
.cargo-checksum.json
.cargo-ok
.travis.yml
appveyor.yml
build.rs
Cargo.toml
CONTRIBUTING.md
example-graphviz-ir.png
LICENSE
README.md
rustfmt.toml

bindgen

bindgen automatically generates Rust FFI bindings to C and 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

Contributing

See CONTRIBUTING.md for hacking on bindgen!