Skip to content

Commit d24ecb2

Browse files
committed
Add multi-file support
1 parent 78ebd58 commit d24ecb2

File tree

3 files changed

+745
-33
lines changed

3 files changed

+745
-33
lines changed

cobalt-build/src/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl<'de> Deserialize<'de> for Dependency {
207207
deserializer.deserialize_any(DepVisitor)
208208
}
209209
}
210-
fn clear_mod(this: &mut HashMap<String, Symbol>) {
210+
pub fn clear_mod(this: &mut HashMap<String, Symbol>) {
211211
for (_, sym) in this.iter_mut() {
212212
sym.1.export = false;
213213
match sym {

cobalt-build/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::io::{self, prelude::*, ErrorKind};
1212
use path_calculate::*;
1313
use std::path::{Path, PathBuf};
1414
use cobalt_errors::error;
15+
pub use build::clear_mod;
1516

1617
#[derive(Debug, Error)]
1718
#[error("compiler errors were encountered")]

0 commit comments

Comments
 (0)