Skip to content

Commit

Permalink
Merge pull request #5 from blocklessnetwork/feature/deno2.0
Browse files Browse the repository at this point in the history
Feature/deno2.0
  • Loading branch information
Joinhack authored Nov 7, 2024
2 parents 8c949a4 + 347c5d9 commit 9d3a93f
Show file tree
Hide file tree
Showing 18 changed files with 3,996 additions and 1,641 deletions.
10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ repository = "https://github.com/blocklessnetwork/bls-permissions"

[workspace.dependencies]
anyhow = "1.0.57"
deno_core = { version = "0.299.0" }
deno_path_util = "=0.2.0"
deno_core = { version = "0.314.1" }
deno_path_util = "=0.2.1"
deno_terminal = "0.2.0"
libc = "0.2.126"
log = "0.4.20"
fqdn = "0.3.4"
serde_json = "1.0.128"
serde_json = "1.0.85"
serde = { version = "1.0.149", features = ["derive"] }
url = { version = "< 2.5.0", features = ["serde", "expose_internals"] }
once_cell = "1.17.1"
which = "4.2.5"
bls-permissions = {path = "crates/bls-permissions"}
parking_lot = "0.12.0"
percent-encoding = "2.3.0"
winapi = "=0.3.9"
winapi = "=0.3.9"
thiserror = "1.0.61"

11 changes: 9 additions & 2 deletions crates/bls-permissions/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@ parking_lot.workspace = true
libc.workspace = true
serde_json.workspace = true
percent-encoding.workspace = true
thiserror.workspace = true
termcolor = { version = "1.1.3"}

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
[target.'cfg(not(target_family="wasm"))'.dependencies]
which.workspace = true

[dev.dependencies]
[dev-dependencies]
serde.workspace = true

[features]
default = ["deno"]
deno=[]

4 changes: 3 additions & 1 deletion crates/bls-permissions/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,7 @@ pub fn get_custom_error_class(error: &Error) -> Option<&'static str> {

#[inline(always)]
pub fn is_yield_error_class(error: &Error) -> bool {
get_custom_error_class(error).map(|s| s == YIELD_CLASS).unwrap_or(false)
get_custom_error_class(error)
.map(|s| s == YIELD_CLASS)
.unwrap_or(false)
}
Loading

0 comments on commit 9d3a93f

Please sign in to comment.