Skip to content

Commit ccbc28c

Browse files
authored
refactor: make nova_vm features optional (#164)
* refactor: move nova_vm features to cli * chore(runtime): mirror nova_vm features
1 parent 4a00731 commit ccbc28c

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@ libffi = "4.1.2"
4040
libsui = "0.10.0"
4141
log = "0.4.28"
4242
lsp-types = "0.97.0"
43-
nova_vm = { git = "https://github.com/trynova/nova", rev = "cf2e8ea9a5a4cb0d70d9723e4b42ed7131026bcf", features = [
44-
"typescript",
45-
"annex-b",
46-
"proposals"
47-
] }
43+
nova_vm = { git = "https://github.com/trynova/nova", rev = "cf2e8ea9a5a4cb0d70d9723e4b42ed7131026bcf" }
4844
nu-ansi-term = "0.50.1"
4945
owo-colors = "4.2.3"
5046
oxc_codegen = "0.93.0"

cli/Cargo.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ reedline.workspace = true
4343
nu-ansi-term.workspace = true
4444
nova_vm.workspace = true
4545
andromeda-core.workspace = true
46-
andromeda-runtime.workspace = true
46+
andromeda-runtime = { workspace = true, features = [
47+
"typescript",
48+
"annex-b",
49+
"proposals"
50+
] }
4751
anyhow.workspace = true
4852
rustls.workspace = true
4953
oxc_ast.workspace = true

runtime/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ hotpath = ["dep:hotpath", "hotpath/hotpath", "andromeda-core/hotpath"]
1717
hotpath-alloc-bytes-total = ["hotpath/hotpath-alloc-bytes-total"]
1818
hotpath-alloc-count-total= ["hotpath/hotpath-alloc-count-total"]
1919
hotpath-off = ["hotpath/hotpath-off"]
20+
typescript = ["nova_vm/typescript"]
21+
annex-b = ["nova_vm/annex-b"]
22+
proposals = ["nova_vm/proposals"]
2023

2124
[dependencies]
2225
andromeda-core.workspace = true

0 commit comments

Comments
 (0)