 b13925f7ab
			
		
	
	
		b13925f7ab
		
			
		
	
	
	
	
		
			
			* Move flipper-core into a workspace * Fix target build rules * Add flipper-f1-sys library * Add flipper-f1-sys dependency to flipper-core * Remove apparently useless includes * Build and export HAL statics * Disable Rust dependency detection for target_f1 build * Install libclang-10-dev in docker * Build Rust libs every time * remove duplicate sources from make * clean build different example * wip add example fn * Implement rust_uart_write() * fix rebuild instructions for target_f1 Co-authored-by: aanper <mail@s3f.ru>
		
			
				
	
	
		
			13 lines
		
	
	
		
			376 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			376 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| use std::env;
 | |
| use std::path::Path;
 | |
| 
 | |
| fn main() {
 | |
|     let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();
 | |
|     let pkg_name = env::var("CARGO_PKG_NAME").unwrap();
 | |
| 
 | |
|     cbindgen::generate(&crate_dir)
 | |
|         .expect("Unable to generate cbindgen bindings")
 | |
|         .write_to_file(
 | |
|             Path::new(&crate_dir).join("bindings").join(format!("{}.h", pkg_name))
 | |
|         );
 | |
| } |