-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement write_value, rework length_prefix, and simplify external le…
…ngth prefixes.
- Loading branch information
1 parent
776b791
commit 7774936
Showing
30 changed files
with
232 additions
and
1,461 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 |
---|---|---|
@@ -1,5 +1,7 @@ | ||
# v1.0.0 | ||
# v0.2.0 | ||
- Add context to all parse functions | ||
- Remove `#[repr(...)]`, instead specify repr in `#[protocol(discriminant = "...")]` | ||
- Remove Hints | ||
- Add `#[protocol(value = "<expr>")]` for automatically writing arbitrary element value | ||
- Remove Hints, LengthPrefixed, etc. | ||
- Add `#[protocol(write_value = "<expr>")]` for automatically writing arbitrary element value | ||
- Replace `#[protocol(length_prefix(<kind>(<field>)))]` with `#[protocol(length = "<expr>")]` | ||
- Check attribute applicability in every context |
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 |
---|---|---|
|
@@ -7,5 +7,4 @@ publish = false | |
|
||
[dependencies] | ||
bin-proto = { path = "../bin-proto" } | ||
bitstream-io = "2.2.0" | ||
deku = "0.16" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "bin-proto-derive" | ||
version = "1.0.0" | ||
version = "0.1.0" | ||
authors = [ | ||
"Wojciech Graj <[email protected]>", | ||
"Dylan McKay <[email protected]>" | ||
|
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
Oops, something went wrong.