Skip to content

Commit

Permalink
Set up proper workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Aug 22, 2023
1 parent db231f5 commit 35d64e3
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 82 deletions.
31 changes: 6 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 31 additions & 9 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,40 @@
members = ["packages/*", "contracts/*"]
resolver = "2"

[profile.release.package.token-reflect]
codegen-units = 1
incremental = false
[workspace.package]
edition = "2021"
license = "Apache-2.0"
homepage = "https://junonetwork.io"
repository = "https://github.com/CosmosContracts/token-bindings"
version = "0.11.0"

[profile.release.package.tokenfactory]
codegen-units = 1
incremental = false

[profile.release]
rpath = false
lto = true
overflow-checks = true
codegen-units = 1
opt-level = 3
debug = false
rpath = false
lto = true
debug-assertions = false
panic = 'abort'
incremental = false
# Please do not disable these. Doing so will cause overflow checks in
# all workspace members to stop working. Overflows should be errors.
overflow-checks = true

[workspace.dependencies]
cosmwasm-schema = "1.1"
cosmwasm-std = "1.1"
cosmwasm-storage = "1.1"
schemars = "0.8"
serde = "1.0"
itertools = "0.11"
cw-storage-plus = "0.16"
anyhow = "1"
thiserror = "1.0"
cw2 = "1.0.1"

# TODO use upstream when PR merged: https://github.com/CosmWasm/cw-multi-test/pull/51
cw-multi-test = { git = "https://github.com/JakeHartnell/cw-multi-test.git", branch = "bank-supply-support" }
token-bindings = { path = "./packages/bindings", version = "0.11.0" }
token-bindings-test = { path = "./packages/bindings-test", version = "0.11.0" }
22 changes: 12 additions & 10 deletions contracts/reflect/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
[package]
name = "token-reflect"
version = "0.9.0"
version = { workspace = true }
authors = ["Ethan Frey <[email protected]>"]
edition = "2018"
description = "Reflect messages to use for test cases - based on cw-mask"
license = "Apache-2.0"

edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand All @@ -17,12 +19,12 @@ crate-type = ["cdylib", "rlib"]
backtraces = ["cosmwasm-std/backtraces"]

[dependencies]
cosmwasm-schema = "1.1"
cosmwasm-std = { version = "1.1", features = ["staking", "stargate"] }
cosmwasm-storage = "1.1"
token-bindings = { version = "0.11.0", path = "../../packages/bindings" }
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
thiserror = "1.0"
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true, features = ["staking", "stargate"] }
cosmwasm-storage = { workspace = true }
token-bindings = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, default-features = false, features = ["derive"] }
thiserror = { workspace = true }

[dev-dependencies]
29 changes: 16 additions & 13 deletions contracts/tokenfactory/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[package]
name = "tokenfactory"
version = "0.9.0"
version = { workspace = true }
authors = ["Roman <[email protected]>"]
edition = "2018"

edition = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

exclude = [
# Those files are rust-optimizer artifacts. You might want to commit them for convenience but they should not be part of the source code publication.
Expand Down Expand Up @@ -40,16 +43,16 @@ optimize = """docker run --rm -v "$(pwd)":/code \
"""

[dependencies]
cosmwasm-schema = "1.1"
cosmwasm-std = "1.2.3"
cosmwasm-storage = "1.1"
cw-storage-plus = "1.0.1"
token-bindings = { version = "0.11.0", path = "../../packages/bindings" }
cw2 = "1.0.1"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
thiserror = { version = "1.0" }
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
cosmwasm-storage = { workspace = true }
cw2 = { workspace = true }
cw-storage-plus = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, default-features = false, features = ["derive"] }
thiserror = { workspace = true }
token-bindings = { workspace = true }

[dev-dependencies]
cw-multi-test = "0.16.2"
token-bindings-test = { path = "../../packages/bindings-test" }
cw-multi-test = { workspace = true }
token-bindings-test = { workspace = true }
31 changes: 16 additions & 15 deletions packages/bindings-test/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
[package]
name = "token-bindings-test"
version = "0.9.0"
authors = ["Ethan Frey <[email protected]>", "Jake Hartnell <[email protected]>"]
edition = "2021"
version = { workspace = true }
authors = ["Ethan Frey <[email protected]>", "Jake Hartnell <[email protected]>"]
description = "Multitest (and other test helpers) support for Token factory contracts"
repository = "https://github.com/CosmosContracts/token-bindings"
license = "Apache-2.0"

edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

[dependencies]
itertools = "0.11"
token-bindings = { version = "0.11.0", path = "../bindings" }
cosmwasm-std = "1.1"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
# TODO use upstream when PR merged: https://github.com/CosmWasm/cw-multi-test/pull/51
cw-multi-test = { git = "https://github.com/JakeHartnell/cw-multi-test.git", branch = "bank-supply-support" }
cw-storage-plus = "0.16"
anyhow = "1"
thiserror = "1.0"
anyhow = { workspace = true }
cosmwasm-std = { workspace = true }
cw-multi-test = { workspace = true }
cw-storage-plus = { workspace = true }
itertools = { workspace = true }
token-bindings = { workspace = true, path = "../bindings" }
schemars = { workspace = true }
serde = { workspace = true, default-features = false, features = ["derive"] }
thiserror = { workspace = true }
21 changes: 11 additions & 10 deletions packages/bindings/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
[package]
name = "token-bindings"
version = "0.11.0"
authors = ["Ethan Frey <[email protected]>", "Reece Williams <[email protected]>"]
edition = "2018"
version = { workspace = true }
authors = ["Ethan Frey <[email protected]>", "Reece Williams <[email protected]>", "Jake Hartnell <[email protected]>"]
description = "Bindings for CustomMsg and CustomQuery for blockchains supporting Token Factory."
repository = "https://github.com/CosmosContracts/token-bindings"
homepage = "https://junonetwork.io"
license = "Apache-2.0"
keywords = ["juno", "blockchain", "token-factory", "osmosis"]
readme = "../../README.md"

edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }

[dependencies]
cosmwasm-schema = "1.1"
cosmwasm-std = "1.1"
schemars = "0.8"
serde = { version = "1.0", default-features = false, features = ["derive"] }
cosmwasm-schema = { workspace = true }
cosmwasm-std = { workspace = true }
schemars = { workspace = true }
serde = { workspace = true, default-features = false, features = ["derive"] }

[dev-dependencies]

0 comments on commit 35d64e3

Please sign in to comment.