-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch Borsh schema from JSON to Borsh format (#57)
* Switch schema from string to Borsh format * Add a way to generate schema of the schema * Add schema helpers * Add comments and fix dead_code.
- Loading branch information
1 parent
52f7605
commit 26b8223
Showing
16 changed files
with
738 additions
and
515 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 |
---|---|---|
|
@@ -18,3 +18,6 @@ | |
package-lock.json | ||
yarn.lock | ||
|
||
# Borsh schema file | ||
**/schema_schema.dat | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,6 +1,6 @@ | ||
[package] | ||
name = "borsh-derive-internal" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Near Inc <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
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 = "borsh-derive" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Near Inc <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
@@ -16,7 +16,7 @@ Binary Object Representation Serializer for Hashing | |
proc-macro = true | ||
|
||
[dependencies] | ||
borsh-derive-internal = { path = "../borsh-derive-internal" , version="0.3.0"} | ||
borsh-schema-derive-internal = { path = "../borsh-schema-derive-internal" , version="0.3.0"} | ||
borsh-derive-internal = { path = "../borsh-derive-internal" , version="0.4.0"} | ||
borsh-schema-derive-internal = { path = "../borsh-schema-derive-internal" , version="0.4.0"} | ||
syn = {version = "1", features = ["full", "fold"] } | ||
|
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 = "borsh-schema-derive-internal" | ||
version = "0.3.0" | ||
version = "0.4.0" | ||
authors = ["Near Inc <[email protected]>"] | ||
edition = "2018" | ||
license = "Apache-2.0" | ||
|
Oops, something went wrong.