Skip to content

Commit 421b8b0

Browse files
authored
feat: new ybinary parser (#389)
* feat: add basic codec * feat: add integer decode * feat: add buffer & string decode * feat: add read structs part1 * feat: add update parsing * feat: update parser part 3 * feat: pub values * fix: test case * feat: add any support * chore: improve codes * fix: parent sub condition * feat: add gc & skip item * chore: add local data test * feat: add delete sets parsing * chore: improve error handle * feat: add benchmark * feat: improve var int performance * fix: nightly feature
1 parent c807e59 commit 421b8b0

25 files changed

+1386
-1
lines changed

Cargo.lock

Lines changed: 224 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ members = [
1313
"libs/jwst-binding/jwst-swift",
1414
"libs/jwst-binding/jwst-swift/jwst-swift-integrate",
1515
# "libs/jwst-binding/jwst-wasm",
16+
"libs/jwst-codec",
17+
"libs/jwst-codec/fuzz",
1618
"libs/jwst-logger",
1719
"libs/jwst-rpc",
1820
"libs/jwst-storage",

libs/jwst-codec/Cargo.toml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[package]
2+
name = "jwst-codec"
3+
version = "0.1.0"
4+
authors = ["DarkSky <[email protected]>"]
5+
edition = "2021"
6+
license = "AGPL-3.0-only"
7+
8+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
9+
10+
[dependencies]
11+
bitvec = "1.0.1"
12+
byteorder = "1.4.3"
13+
nom = "7.1.3"
14+
serde_json = "1.0.94"
15+
16+
[dev-dependencies]
17+
criterion = { version = "0.4.0", features = ["html_reports"] }
18+
lib0 = "0.16.5"
19+
serde = { version = "1.0.155", features = ["derive"] }
20+
21+
[[bench]]
22+
name = "codec_benchmarks"
23+
harness = false
24+
25+
[lib]
26+
bench = true

0 commit comments

Comments
 (0)