Bug 1919778 - Flag EnumeratedArray variable from dom/media/ipc/RemoteDecoderManagerCh...
[gecko.git] / third_party / rust / android_system_properties / README.md
blob46f6500b5924eb8e769bf3f4ebcaca06ed05c4e9
1 # android_system_properties
3 A thin rust wrapper for Android system properties.
5 This crate is similar to the `android-properties` crate with the exception that
6 the necessary Android libc symbols are loaded dynamically instead of linked
7 statically. In practice this means that the same binary will work with old and
8 new versions of Android, even though the API for reading system properties changed
9 around Android L.
11 ## Example
13 ```rust
14 use android_system_properties::AndroidSystemProperties;
16 let properties = AndroidSystemProperties::new();
18 if let Some(value) = properties.get("persist.sys.timezone") {
19    println!("{}", value);
21 ```
23 ## Listing and setting properties
25 For the sake of simplicity this crate currently only contains what's needed by wgpu.
26 The implementations for listing and setting properties can be added back if anyone needs
27 them (let me know by filing an issue).
29 ## License
31 Licensed under either of
33  * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
34  * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
36 at your option.