mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 20:25:44 +00:00
7b10164f9f
Summary: This adds the COSE rust library from https://github.com/franziskuskiefer/cose-rust with its C API from https://github.com/franziskuskiefer/cose-c-api to gecko with a basic test. The COSE library will be used for verifying add-on signatures in future. Reviewers: keeler, ttaubert Reviewed By: keeler Bug #: 1403840 Differential Revision: https://phabricator.services.mozilla.com/D232 --HG-- extra : rebase_source : 433ca6894d88ccda333bfac53507eba4e84924fb
12 lines
313 B
Rust
12 lines
313 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
// Use NSS_LIB_DIR lazily. If it's not set and we can't find NSS in the path,
|
|
// the build will fail.
|
|
#[cfg(test)]
|
|
let lib_dir = env::var("NSS_LIB_DIR");
|
|
if let Ok(lib_dir) = env::var("NSS_LIB_DIR") {
|
|
println!("cargo:rustc-link-search={}", lib_dir);
|
|
}
|
|
}
|