Bug 1858509 add thread-safety annotations around MediaSourceDemuxer::mMonitor r=alwu
[gecko.git] / third_party / rust / rustc-demangle / README.md
blob0833e1e245f6b28885275d084857c61aaf606d1f
1 # rustc-demangle
3 Demangling for Rust symbols, written in Rust.
5 [Documentation](https://docs.rs/rustc-demangle)
7 ## Usage
9 You can add this as a dependency via your `Cargo.toml`
11 ```toml
12 [dependencies]
13 rustc-demangle = "0.1"
14 ```
16 and then be sure to check out the [crate
17 documentation](https://docs.rs/rustc-demangle) for usage.
19 ## Usage from non-Rust languages
21 You can also use this crate from other languages via the C API wrapper in the
22 `crates/capi` directory. This can be build with:
24 ```sh
25 $ cargo build -p rustc-demangle-capi --release
26 ```
28 You'll then find `target/release/librustc_demangle.a` and
29 `target/release/librustc_demangle.so` (or a different name depending on your
30 platform). These objects implement the interface specified in
31 `crates/capi/include/rustc_demangle.h`.
33 # License
35 This project is licensed under either of
37  * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
38    http://www.apache.org/licenses/LICENSE-2.0)
39  * MIT license ([LICENSE-MIT](LICENSE-MIT) or
40    http://opensource.org/licenses/MIT)
42 at your option.
44 ### Contribution
46 Unless you explicitly state otherwise, any contribution intentionally submitted
47 for inclusion in rustc-demangle you, as defined in the Apache-2.0 license, shall
48 be dual licensed as above, without any additional terms or conditions.