pub fn keys_from_bin<P: AsRef<Path>>(path: P) -> Result<Vec<DataKey>>
Expand description

Parses a compiled binary and returns a list of used DataKeys used by it.

Unknown key names are ignored.

Example

build.rs
assert_eq!(
    icu_datagen::keys_from_bin("target/release/my-app")?,
    vec![
        icu::list::provider::AndListV1Marker::KEY,
        icu::list::provider::OrListV1Marker::KEY,
    ],
);