-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'derive-macros' into fix-counter-notify
- Loading branch information
Showing
16 changed files
with
63 additions
and
18 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
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
name = "concordium-cis2" | ||
version = "6.1.0" | ||
authors = ["Concordium <[email protected]>"] | ||
rust-version = "1.72" | ||
edition = "2021" | ||
license = "MPL-2.0" | ||
description = "A collection of types for implementing CIS-2 Concordium Token Standard." | ||
|
Submodule concordium-rust-sdk
updated
4 files
+1 −1 | concordium-base | |
+4 −2 | src/internal.rs | |
+13 −4 | src/v2/conversions.rs | |
+2 −1 | src/v2/mod.rs |
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 @@ | ||
# Changelog | ||
|
||
- Added MSRV (1.72) | ||
|
||
## Unreleased changes | ||
|
||
### Added | ||
|
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,11 +1,13 @@ | ||
[package] | ||
name = "concordium-std-derive" | ||
authors = ["Concordium <[email protected]>"] | ||
version = "0.1.0" | ||
version = "6.0.0" | ||
edition = "2021" | ||
rust-version = "1.65" | ||
rust-version = "1.72" | ||
license = "MPL-2.0" | ||
description = "Procedural macros to generate concordium type constants from strings, that makes writing smart contracts on the Concordium blockchain easier." | ||
homepage = "https://github.com/Concordium/concordium-rust-smart-contracts/" | ||
repository = "https://github.com/Concordium/concordium-rust-smart-contracts/" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
[lib] | ||
|
12 changes: 12 additions & 0 deletions
12
concordium-std-derive/tests/test-programs/fail-missing-env.rs
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,12 @@ | ||
//! Ensure that the macros generate compilable code. | ||
use concordium_contracts_common::*; | ||
use concordium_std_derive::*; | ||
|
||
const ACC: AccountAddress = account_address_env!("TEST"); | ||
|
||
fn f() { | ||
println!("{:?}", ACC.to_string()); | ||
} | ||
|
||
fn main() {} |
5 changes: 5 additions & 0 deletions
5
concordium-std-derive/tests/test-programs/fail-missing-env.stderr
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,5 @@ | ||
error: Environment variable error: NotPresent | ||
--> tests/test-programs/fail-missing-env.rs:6:50 | ||
| | ||
6 | const ACC: AccountAddress = account_address_env!("TEST"); | ||
| ^^^^^^ |
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 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 |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "concordium-std" | |
version = "10.0.0" | ||
authors = ["Concordium <[email protected]>"] | ||
edition = "2021" | ||
rust-version = "1.66" | ||
rust-version = "1.72" | ||
license = "MPL-2.0" | ||
description = "A standard library for writing smart contracts for the Concordium blockchain in Rust." | ||
homepage = "https://github.com/Concordium/concordium-rust-smart-contracts/" | ||
|
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 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