Skip to content

Commit

Permalink
Tag ink! crates with 2.0.0 release (#353)
Browse files Browse the repository at this point in the history
* [*] initial swipe over codebase to tag 2.0.0 release

* [*] fix a number of issues with the previous version setup
  • Loading branch information
Robbepop authored Mar 18, 2020
1 parent 648283e commit 598200f
Show file tree
Hide file tree
Showing 21 changed files with 196 additions and 107 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[workspace]

members = [
"abi",
"core",
Expand Down
16 changes: 11 additions & 5 deletions abi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_abi"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

Expand All @@ -15,12 +15,18 @@ categories = ["no-std", "embedded"]
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]

[dependencies]
ink_abi_derive = { version = "2.0.0", path = "derive", default-features = false, optional = true }
ink_prelude = { version = "2.0.0", path = "../prelude/", default-features = false }
ink_primitives = { version = "2.0.0", path = "../primitives/", default-features = false }

serde = { version = "1.0", default-features = false, features = ["derive", "alloc"] }
derive_more = { version = "0.99", default-features = false, features = ["from"] }
ink_abi_derive = { path = "derive", default-features = false, optional = true }
ink_prelude = { path = "../prelude/", default-features = false }
ink_primitives = { path = "../primitives/", default-features = false }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"] }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]

[dev-dependencies]
serde_json = "1.0"
Expand Down
2 changes: 1 addition & 1 deletion abi/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_abi_derive"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"
license = "APACHE-2.0"
Expand Down
2 changes: 1 addition & 1 deletion alloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_alloc"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

Expand Down
20 changes: 13 additions & 7 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_core"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

Expand All @@ -15,14 +15,13 @@ categories = ["no-std", "embedded"]
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE"]

[dependencies]
ink_abi = { path = "../abi/", default-features = false, features = ["derive"], optional = true }
ink_alloc = { path = "../alloc/", default-features = false }
ink_primitives = { path = "../primitives/", default-features = false }
ink_core_derive = { path = "derive", default-features = false }
ink_prelude = { path = "../prelude/", default-features = false }
ink_abi = { version = "2.0.0", path = "../abi/", default-features = false, features = ["derive"], optional = true }
ink_alloc = { version = "2.0.0", path = "../alloc/", default-features = false }
ink_primitives = { version = "2.0.0", path = "../primitives/", default-features = false }
ink_core_derive = { version = "2.0.0", path = "derive", default-features = false }
ink_prelude = { version = "2.0.0", path = "../prelude/", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive", "full"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }
derive_more = { version = "0.99", default-features = false, features = ["from", "display"] }
smallvec = { version = "1.2", default-features = false, features = ["union"] }
cfg-if = "0.1"
Expand All @@ -34,6 +33,13 @@ num-traits = { version = "0.2", default-features = false, features = ["i128"] }
# Never use this crate outside of the off-chain environment!
rand = { version = "0.7", default-features = false, features = ["alloc"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[dev-dependencies]
itertools = "0.9"

Expand Down
6 changes: 3 additions & 3 deletions core/derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ink_core_derive"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

Expand All @@ -11,14 +11,14 @@ readme = "../README.md"
proc-macro = true

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
quote = "1.0"
syn = { version = "1.0", features = ["full"] }
proc-macro2 = "1.0"
synstructure = "0.12"

[dev-dependencies]
ink_core = { path = ".." }
ink_core = { version = "2.0.0", path = ".." }
trybuild = "1.0.24"

[features]
Expand Down
24 changes: 15 additions & 9 deletions examples/delegator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
[package]
name = "delegator"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_abi = { path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../core", default-features = false }
ink_lang = { path = "../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

adder = { path = "adder", default-features = false, features = ["ink-as-dependency"] }
subber = { path = "subber", default-features = false, features = ["ink-as-dependency"] }
accumulator = { path = "accumulator", default-features = false, features = ["ink-as-dependency"] }
adder = { version = "2.0.0", path = "adder", default-features = false, features = ["ink-as-dependency"] }
subber = { version = "2.0.0", path = "subber", default-features = false, features = ["ink-as-dependency"] }
accumulator = { version = "2.0.0", path = "accumulator", default-features = false, features = ["ink-as-dependency"] }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "delegator"
Expand Down
18 changes: 12 additions & 6 deletions examples/delegator/accumulator/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[package]
name = "accumulator"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../../primitives", default-features = false }
ink_abi = { path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../../core", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "accumulator"
Expand Down
21 changes: 14 additions & 7 deletions examples/delegator/adder/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
[package]
name = "adder"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../../primitives", default-features = false }
ink_abi = { path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../../core", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../../lang", default-features = false }

accumulator = { version = "2.0.0", path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

accumulator = { path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }
[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true


[lib]
name = "adder"
Expand Down
20 changes: 13 additions & 7 deletions examples/delegator/subber/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,25 @@
[package]
name = "subber"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../../primitives", default-features = false }
ink_abi = { path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../../core", default-features = false }
ink_lang = { path = "../../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../../lang", default-features = false }

accumulator = { version = "2.0.0", path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

accumulator = { path = "../accumulator", default-features = false, features = ["ink-as-dependency"] }
[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "subber"
Expand Down
18 changes: 12 additions & 6 deletions examples/dns/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[package]
name = "dns"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_abi = { path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../core", default-features = false }
ink_lang = { path = "../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "dns"
Expand Down
18 changes: 12 additions & 6 deletions examples/erc20/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[package]
name = "erc20"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_abi = { path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../core", default-features = false }
ink_lang = { path = "../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "erc20"
Expand Down
18 changes: 12 additions & 6 deletions examples/erc721/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[package]
name = "erc721"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_abi = { path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../core", default-features = false }
ink_lang = { path = "../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "erc721"
Expand Down
18 changes: 12 additions & 6 deletions examples/flipper/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
[package]
name = "flipper"
version = "0.1.0"
version = "2.0.0"
authors = ["Parity Technologies <admin@parity.io>"]
edition = "2018"

[dependencies]
ink_primitives = { path = "../../primitives", default-features = false }
ink_abi = { path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { path = "../../core", default-features = false }
ink_lang = { path = "../../lang", default-features = false }
ink_primitives = { version = "2.0.0", path = "../../primitives", default-features = false }
ink_abi = { version = "2.0.0", path = "../../abi", default-features = false, features = ["derive"], optional = true }
ink_core = { version = "2.0.0", path = "../../core", default-features = false }
ink_lang = { version = "2.0.0", path = "../../lang", default-features = false }

scale = { package = "parity-scale-codec", version = "1.2", default-features = false, features = ["derive"] }
type-metadata = { git = "https://github.com/type-metadata/type-metadata.git", default-features = false, features = ["derive"], optional = true }

[dependencies.type-metadata]
git = "https://github.com/type-metadata/type-metadata.git"
rev = "02eae9f35c40c943b56af5b60616219f2b72b47d"
default-features = false
features = ["derive"]
optional = true

[lib]
name = "flipper"
Expand Down
Loading

0 comments on commit 598200f

Please sign in to comment.