diff --git a/bril-rs/rs2bril/Cargo.toml b/bril-rs/rs2bril/Cargo.toml index f6021dfc4..eab259f67 100644 --- a/bril-rs/rs2bril/Cargo.toml +++ b/bril-rs/rs2bril/Cargo.toml @@ -21,4 +21,7 @@ clap = { version = "4.4", features = ["derive"] } [dependencies.bril-rs] version = "0.1.0" path = ".." -features = [ "memory", "float", "position"] +features = [ "memory", "float", "position" ] + +[features] +import = [ "bril-rs/import" ] diff --git a/bril-rs/rs2bril/src/lib.rs b/bril-rs/rs2bril/src/lib.rs index dc0fcc334..03f1d3c7c 100644 --- a/bril-rs/rs2bril/src/lib.rs +++ b/bril-rs/rs2bril/src/lib.rs @@ -1172,5 +1172,7 @@ pub fn from_file_to_program( from_empty_function_to_function(f, &mut state) }) .collect(), + #[cfg(feature = "import")] + imports: vec![], } }