-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from EspressoSystems/prepare_for_crates_io_pub…
…lishing Prepare for crates io publishing
- Loading branch information
Showing
6 changed files
with
125 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
|
||
name: Security audit | ||
on: | ||
push: | ||
# For PR we only want to fail if dependencies were changed. | ||
paths: | ||
- "**/Cargo.toml" | ||
# Run the audit job once a day on main. | ||
schedule: | ||
- cron: "0 0 * * *" | ||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rustsec/[email protected] | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
[package] | ||
name = "versioned-binary-serialization" | ||
version = "0.1.2" | ||
name = "vbs" | ||
version = "0.1.3" | ||
edition = "2021" | ||
rust-version = "1.75.0" | ||
authors = ["Espresso Systems <[email protected]>"] | ||
repository = "https://github.com/EspressoSystems/versioned-binary-serialization.git" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# versioned-binary-serialization | ||
# vbs | ||
|
||
Provides the following: | ||
- a trait `StaticVersionType` for constraining to a version (major.minor) at compile-time. | ||
- sealed to a struct `StaticVersion<const MAJOR: u16, const MINOR: u16>`. | ||
- for the purposes of version enforcement, patch versions are not treated as a type change. | ||
- a struct `Version` for runtime operations against a version, without requiring dyn | ||
- used to \[de\]serialize a version in a strictly defined and immutable form, so that updates to the serialization format iteself can be a version controlled property. | ||
- does not include patch level, prerelease identifiers, or build metadata; this is not intended to be a general purpose `semver` crate. | ||
- a trait `BinarySerializer`, an adaptor that can be implemented around any data format that adapts the `serde` data model. | ||
- by default, serializes a version prefix before each top-level serialization, and verifies version compatibility when deserializing the serialized message. | ||
- supports unversioned `[de]serialize_no_version` operations, which, by default, should simply be the same as calling `type.serialize(serializer)` for the embedded serializer. | ||
- implementations against existing data formats | ||
- currently, only [bincode](https://crates.io/crates/bincode) |