Skip to content

Commit

Permalink
feat(WIP): file imports
Browse files Browse the repository at this point in the history
  • Loading branch information
load1n9 committed Sep 28, 2023
1 parent df75f3a commit ca66414
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ clap = { version = "4.0.29", features = ["derive"] }
wasmprinter = "0.2.45"
wasmtime = "12.0.2"
wasmtime-wasi = "12.0.2"
tokio = { version = "1.23.0", features = ["full"] }
tokio-util = { version = "0.7", features = ["compat"] }
tokio = { version = "1.32.0", features = ["full"] }
tokio-util = { version = "0.7.9", features = ["compat"] }
tower-lsp = { version = "0.20.0"}
toml = "0.7.2"
tracing-subscriber = "0.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/import.whi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "./add.whi"
import "@std/math/mod.whi"

export fn helloWorld(): i32 {
return add(1, 2)
}
1 change: 0 additions & 1 deletion preprocessor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ impl Preprocessor {
}

let new_file_name = if url::Url::parse(&file_name).is_err() {
println!("{}", file_name);
match file_name.resolve_in(&path.canonicalize().unwrap()) {
std::borrow::Cow::Owned(v) => v,
std::borrow::Cow::Borrowed(v) => v.to_owned(),
Expand Down

0 comments on commit ca66414

Please sign in to comment.