Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.10
->1.1
0.10
->1.1
Release Notes
near/borsh-rs (borsh)
v1.1.1
Compare Source
Other
test_schema_conflicts
(#254)v1.1.0
Compare Source
Added
schema_container_of
target requirement with?Sized
to allow slices (#245)Fixed
#cratename::BorshSchema
in derive-generated code to void function name collisions leading to compilation errors (#244)v1.0.0
Compare Source
v0.11.0
Compare Source
Added
Fixed
Other
v0.10.3
Compare Source
#[derive(BorshDeserialize, BorshSerialize, BorshSchema)] pub enum CurveType {
ED25519
= 0, // 0 as u8 in enum tag SECP256K1 = 2, // 1 as u8 in enum tag }#[derive(BorshDeserialize, BorshSerialize, BorshSchema)]
#[borsh(use_discriminant=false)]
pub enum CurveType {
ED25519
= 0, // 0 as u8 in enum tagSECP256K1 = 2, // 1 as u8 in enum tag
}
// vs
#[derive(BorshDeserialize, BorshSerialize, BorshSchema)]
#[borsh(use_discriminant=true)]
pub enum CurveType {
ED25519
= 0, // 0 as u8 in enum tagSECP256K1 = 2, // 2 as u8 in enum tag
}
BorshSchema
was extended withmax_serialized_size
implementation, which now unlocks support ofborsh
by a plethora of bounded types to express statically defined size limits of serialized representation of these types.
schema
BorshSchemaContainer
api was made future-proof.schema
Definition
was extended with more variants, fields and details to uncover some of theimplied details of serialization format.
BorshSchema
can now express a wider range of types. All types, which haveBorshSchema
defined by the library,now have a
Definition
.schema
Declaration
-s were renamed to follow Rust-first rule and not be a mix of Rust types naming/syntax and syntaxfrom other languages.
v0.10.2
Compare Source
v0.10.1
Compare Source
core::ops::range
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.