commit | 29aef0075969adea5a53f957da81c738f4d236c5 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed Aug 07 11:23:02 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed Aug 07 11:23:02 2024 +0000 |
tree | a21409c93975f20ffed460d00a8eff7bf7ae3203 | |
parent | 47e23d539b8f558151c2bc6b71907a1336abd8ea [diff] | |
parent | f448de29cbd1021a22f02f7ea1023bf9c224ed77 [diff] |
Update Android.bp by running cargo_embargo am: f448de29cb Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/mime/+/3208554 Change-Id: Ia213634338cfdb2574b26309f128cdbd1a677c6e Signed-off-by: Automerger Merge Worker <[email protected]>
Support MIME (Media Types) as strong types in Rust.
extern crate mime; // common types are constants let text = mime::TEXT_PLAIN; // deconstruct Mimes to match on them match (text.type_(), text.subtype()) { (mime::TEXT, mime::PLAIN) => { // plain text! }, (mime::TEXT, _) => { // structured text! }, _ => { // not text! } }