Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dependency cleanup
Browse files Browse the repository at this point in the history
Erin van der Veen committed Jan 25, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
kylekurz Kyle Kurz
1 parent 0b6c1dd commit 492a7f4
Showing 4 changed files with 41 additions and 32 deletions.
49 changes: 29 additions & 20 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -38,24 +38,23 @@ targets = ["x86_64-unknown-linux-gnu", "x86_64-apple-darwin", "x86_64-pc-windows
[workspace.dependencies]
assert_cmd = "2.0"
async-scoped = { version = "0.7.1", features = ["use-tokio"] }
cfg-if = "1.0.0"
clap = { version = "4.3", features = [ "env" ] }
clap_derive = "4.3"
clap_complete = "4.4.1"
clap_complete = "4.4"
criterion = "0.5"
directories = "5.0"
env_logger = "0.10"
futures = "0.3.28"
indoc = "2.0"
itertools = "0.11"
log = "0.4"
predicates = "3.0.3"
predicates = "3.0"
pretty_assertions = "1.3"
prettydiff = { version = "0.6.4", default-features = false }
regex = "1.8.2"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
tempfile = "3.5.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tempfile = "3.5"
test-log = "0.2.11"
tokio = "1.32"
tokio-test = "0.4"
1 change: 0 additions & 1 deletion topiary-playground/Cargo.toml
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ license.workspace = true
crate-type = ["cdylib"]

[dependencies]
cfg-if = { workspace = true }
topiary = { path = "../topiary" }
topiary-config = { path = "../topiary-config" }
tree-sitter-facade = { workspace = true }
12 changes: 7 additions & 5 deletions topiary-playground/src/lib.rs
Original file line number Diff line number Diff line change
@@ -13,13 +13,15 @@ struct QueryState {
static QUERY_STATE: Mutex<Option<QueryState>> = Mutex::new(None);

#[wasm_bindgen(js_name = topiaryInit)]
#[cfg(not(feature = "console_error_panic_hook"))]
pub async fn topiary_init() -> Result<(), JsError> {
cfg_if::cfg_if! {
if #[cfg(feature = "console_error_panic_hook")] {
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
}
}
TreeSitter::init().await
}

#[wasm_bindgen(js_name = topiaryInit)]
#[cfg(feature = "console_error_panic_hook")]
pub async fn topiary_init() -> Result<(), JsError> {
std::panic::set_hook(Box::new(console_error_panic_hook::hook));
TreeSitter::init().await
}

0 comments on commit 492a7f4

Please sign in to comment.