Skip to content

Commit

Permalink
feat: new ybinary parser (#389)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
darkskygit authored Apr 18, 2023
1 parent c807e59 commit 421b8b0
Show file tree
Hide file tree
Showing 25 changed files with 1,386 additions and 1 deletion.
225 changes: 224 additions & 1 deletion Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ members = [
"libs/jwst-binding/jwst-swift",
"libs/jwst-binding/jwst-swift/jwst-swift-integrate",
# "libs/jwst-binding/jwst-wasm",
"libs/jwst-codec",
"libs/jwst-codec/fuzz",
"libs/jwst-logger",
"libs/jwst-rpc",
"libs/jwst-storage",
Expand Down
26 changes: 26 additions & 0 deletions libs/jwst-codec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[package]
name = "jwst-codec"
version = "0.1.0"
authors = ["DarkSky <[email protected]>"]
edition = "2021"
license = "AGPL-3.0-only"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bitvec = "1.0.1"
byteorder = "1.4.3"
nom = "7.1.3"
serde_json = "1.0.94"

[dev-dependencies]
criterion = { version = "0.4.0", features = ["html_reports"] }
lib0 = "0.16.5"
serde = { version = "1.0.155", features = ["derive"] }

[[bench]]
name = "codec_benchmarks"
harness = false

[lib]
bench = true
Loading

1 comment on commit 421b8b0

@vercel
Copy link

@vercel vercel bot commented on 421b8b0 Apr 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.