Browse Source

Fix boa cli history (#3875)

* Fix boa cli history

* Ignore dead code warning in fuzzer
pull/3876/head
raskad 5 months ago committed by GitHub
parent
commit
32e75620b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 12
      Cargo.lock
  2. 2
      cli/Cargo.toml
  3. 1
      tests/fuzz/fuzz_targets/common.rs

12
Cargo.lock generated

@ -1245,6 +1245,17 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a"
[[package]]
name = "fd-lock"
version = "4.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7e5768da2206272c81ef0b5e951a41862938a6070da63bcea197899942d3b947"
dependencies = [
"cfg-if",
"rustix",
"windows-sys 0.52.0",
]
[[package]] [[package]]
name = "fixed_decimal" name = "fixed_decimal"
version = "0.5.6" version = "0.5.6"
@ -2846,6 +2857,7 @@ dependencies = [
"bitflags 2.5.0", "bitflags 2.5.0",
"cfg-if", "cfg-if",
"clipboard-win", "clipboard-win",
"fd-lock",
"libc", "libc",
"log", "log",
"memchr", "memchr",

2
cli/Cargo.toml

@ -16,7 +16,7 @@ boa_engine = { workspace = true, features = ["deser", "flowgraph", "trace"] }
boa_parser.workspace = true boa_parser.workspace = true
boa_gc.workspace = true boa_gc.workspace = true
boa_runtime.workspace = true boa_runtime.workspace = true
rustyline = { workspace = true, features = ["derive"]} rustyline = { workspace = true, features = ["derive", "with-file-history"] }
clap = { workspace = true, features = ["derive"] } clap = { workspace = true, features = ["derive"] }
serde_json.workspace = true serde_json.workspace = true
colored.workspace = true colored.workspace = true

1
tests/fuzz/fuzz_targets/common.rs

@ -74,6 +74,7 @@ impl Debug for FuzzData {
} }
} }
#[allow(dead_code)]
pub struct FuzzSource { pub struct FuzzSource {
pub interner: Interner, pub interner: Interner,
pub source: String, pub source: String,

Loading…
Cancel
Save