Skip to content

Commit

Permalink
refactor: remove "ext/flash" (#18578)
Browse files Browse the repository at this point in the history
With #18568 landed we no longer
need "ext/flash". 

This commit removes "deno_flash" extension completely.

This should have some impact on the binary and snapshot size.

Closes #17356
  • Loading branch information
bartlomieju authored and levex committed Apr 12, 2023
1 parent fe21f65 commit aa3f85d
Show file tree
Hide file tree
Showing 27 changed files with 1 addition and 3,125 deletions.
20 changes: 0 additions & 20 deletions Cargo.lock

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

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ members = [
"ext/console",
"ext/crypto",
"ext/fetch",
"ext/flash",
"ext/ffi",
"ext/fs",
"ext/http",
Expand Down Expand Up @@ -62,7 +61,6 @@ deno_console = { version = "0.97.0", path = "./ext/console" }
deno_crypto = { version = "0.111.0", path = "./ext/crypto" }
deno_fetch = { version = "0.121.0", path = "./ext/fetch" }
deno_ffi = { version = "0.84.0", path = "./ext/ffi" }
deno_flash = { version = "0.33.0", path = "./ext/flash" }
deno_fs = { version = "0.7.0", path = "./ext/fs" }
deno_http = { version = "0.92.0", path = "./ext/http" }
deno_io = { version = "0.7.0", path = "./ext/io" }
Expand Down Expand Up @@ -265,8 +263,6 @@ opt-level = 3
opt-level = 3
[profile.release.package.deno_http]
opt-level = 3
[profile.release.package.deno_flash]
opt-level = 3
[profile.release.package.deno_net]
opt-level = 3
[profile.release.package.deno_web]
Expand Down
37 changes: 0 additions & 37 deletions cli/bench/http/deno_http_flash_ops.js

This file was deleted.

18 changes: 0 additions & 18 deletions cli/bench/http/deno_http_flash_ops_spawn.js

This file was deleted.

16 changes: 0 additions & 16 deletions cli/bench/http/deno_http_flash_post_bin.js

This file was deleted.

5 changes: 0 additions & 5 deletions cli/bench/http/deno_http_flash_post_bin.lua

This file was deleted.

18 changes: 0 additions & 18 deletions cli/bench/http/deno_http_flash_spawn.js

This file was deleted.

File renamed without changes.
1 change: 0 additions & 1 deletion cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,6 @@ fn create_cli_snapshot(snapshot_path: PathBuf) {
deno_http::deno_http::init_ops(),
deno_io::deno_io::init_ops(Default::default()),
deno_fs::deno_fs::init_ops::<PermissionsContainer>(false),
deno_flash::deno_flash::init_ops::<PermissionsContainer>(false), // No --unstable
deno_node::deno_node::init_ops::<deno_runtime::RuntimeNodeEnv>(None),
cli::init_ops_and_esm(), // NOTE: This needs to be init_ops_and_esm!
];
Expand Down
7 changes: 0 additions & 7 deletions cli/tests/integration/run_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4230,13 +4230,6 @@ itest!(config_file_lock_true {
exit_code: 10,
});

// TODO(bartlomieju): this test is flaky on CI, reenable it after debugging
// // Check https://github.com/denoland/deno_std/issues/2882
// itest!(flash_shutdown {
// args: "run --unstable --allow-net run/flash_shutdown/main.ts",
// exit_code: 0,
// });

itest!(permission_args {
args: "run run/001_hello.js --allow-net",
output: "run/permission_args.out",
Expand Down
23 changes: 0 additions & 23 deletions cli/tests/testdata/run/flash_shutdown/main.ts

This file was deleted.

Loading

0 comments on commit aa3f85d

Please sign in to comment.