forked from mirrors/gecko-dev
		
	 7b10164f9f
			
		
	
	
		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
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			313 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 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);
 | |
|     }
 | |
| }
 |