Skip to content

Commit

Permalink
chore: deprecate Deno in favor of Wasm (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
scarmuega authored May 4, 2024
1 parent 5ceb165 commit 79a069c
Show file tree
Hide file tree
Showing 12 changed files with 235 additions and 3,303 deletions.
3,302 changes: 235 additions & 3,067 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ readme = "README.md"
authors = ["Santiago Carmuega <[email protected]>"]

[features]
deno = ["deno_runtime"]
wasm = ["extism"]
aws = ["aws-config", "aws-types", "aws-sdk-sqs", "aws-sdk-lambda", "aws-sdk-s3"]
sql = ["sqlx"]
Expand Down Expand Up @@ -69,7 +68,6 @@ google-cloud-pubsub = { version = "0.16.0", optional = true }
google-cloud-googleapis = { version = "0.10.0", optional = true }
google-cloud-default = { version = "0.4.0", optional = true, features = ["pubsub"] }
r2d2_redis = { version = "0.14.0", optional = true }
deno_runtime = { version = "0.126.0", optional = true }
jsonwebtoken = { version = "8.3.0", optional = true }
tonic = { version = "0.9.2", features = ["tls", "tls-roots"], optional = true }
futures = { version = "0.3.28", optional = true }
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
213 changes: 0 additions & 213 deletions src/filters/deno/mod.rs

This file was deleted.

3 changes: 0 additions & 3 deletions src/filters/deno/runtime.js

This file was deleted.

18 changes: 0 additions & 18 deletions src/filters/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ pub enum Bootstrapper {

#[cfg(feature = "wasm")]
WasmPlugin(wasm_plugin::Stage),

#[cfg(feature = "deno")]
Deno(deno::Stage),
}

impl Bootstrapper {
Expand All @@ -43,9 +40,6 @@ impl Bootstrapper {

#[cfg(feature = "wasm")]
Bootstrapper::WasmPlugin(p) => &mut p.input,

#[cfg(feature = "deno")]
Bootstrapper::Deno(p) => &mut p.input,
}
}

Expand All @@ -60,9 +54,6 @@ impl Bootstrapper {

#[cfg(feature = "wasm")]
Bootstrapper::WasmPlugin(p) => &mut p.output,

#[cfg(feature = "deno")]
Bootstrapper::Deno(p) => &mut p.output,
}
}

Expand All @@ -77,9 +68,6 @@ impl Bootstrapper {

#[cfg(feature = "wasm")]
Bootstrapper::WasmPlugin(x) => gasket::runtime::spawn_stage(x, policy),

#[cfg(feature = "deno")]
Bootstrapper::Deno(x) => gasket::runtime::spawn_stage(x, policy),
}
}
}
Expand All @@ -96,9 +84,6 @@ pub enum Config {

#[cfg(feature = "wasm")]
WasmPlugin(wasm_plugin::Config),

#[cfg(feature = "deno")]
Deno(deno::Config),
}

impl Config {
Expand All @@ -113,9 +98,6 @@ impl Config {

#[cfg(feature = "wasm")]
Config::WasmPlugin(c) => Ok(Bootstrapper::WasmPlugin(c.bootstrapper(ctx)?)),

#[cfg(feature = "deno")]
Config::Deno(c) => Ok(Bootstrapper::Deno(c.bootstrapper(ctx)?)),
}
}
}
Expand Down

0 comments on commit 79a069c

Please sign in to comment.