Reorganize crates based on program

This commit is contained in:
Michael Vines 2020-08-07 23:58:18 -07:00
parent 90cc4d3e74
commit 26ab9bb26a
98 changed files with 17 additions and 16 deletions

View File

@ -1,10 +1,10 @@
[workspace]
members = [
"ci/client",
"memo",
"token",
"token-cli",
"token-swap",
"memo/program",
"token-swap/program",
"token/cli",
"token/program",
]
# Workflow for developing against local Solana crates

View File

@ -1,14 +1,15 @@
[package]
name = "test-client"
version = "0.1.0"
authors = ["Jack May <jack@solana.com>"]
authors = ["Solana Maintainers <maintainers@solana.foundation>"]
publish = false
edition = "2018"
# Used to ensure that SPL programs are buildable by external clients
[dependencies]
solana-sdk = "1.3.1"
spl-memo = { path = "../../memo" }
spl-token = { path = "../../token" }
spl-token-swap = { path = "../../token-swap" }
spl-memo = { path = "../../memo/program" }
spl-token = { path = "../../token/program" }
spl-token-swap = { path = "../../token-swap/program" }

View File

@ -8,13 +8,13 @@ cd "$(dirname "$0")/.."
./do.sh clippy token-swap -- --deny=warnings
SPL_CBINDGEN=1 ./do.sh build-lib token-swap -D warnings
git diff --exit-code token-swap/inc/token-swap.h
git diff --exit-code token-swap/program/inc/token-swap.h
cc token-swap/program/inc/token-swap.h -o target/token-swap.gch
./do.sh build token
./do.sh build token-swap
./do.sh doc token-swap
./do.sh test token-swap
cc token-swap/inc/token-swap.h -o target/token-swap.gch
# Install dependency project
(

View File

@ -8,16 +8,16 @@ cd "$(dirname "$0")/.."
./do.sh clippy token -- --deny=warnings
SPL_CBINDGEN=1 ./do.sh build-lib token -D warnings
git diff --exit-code token/inc/token.h
git diff --exit-code token/program/inc/token.h
cc token/program/inc/token.h -o target/token.gch
./do.sh build token
./do.sh doc token
./do.sh test token
cc token/inc/token.h -o target/token.gch
# Test cli
./do.sh fmt token-cli --all -- --check
./do.sh clippy token-cli -- --deny=warnings
./do.sh fmt token/cli --all -- --check
./do.sh clippy token/cli -- --deny=warnings
# Test js bindings
cd "$(dirname "$0")/../token/js"

View File

@ -22,7 +22,7 @@ num-derive = "0.3"
num-traits = "0.2"
remove_dir_all = "=0.5.0"
solana-sdk = { version = "1.2.17", default-features = false, optional = true }
spl-token = { path = "../token", default-features = false, optional = true }
spl-token = { path = "../../token/program", default-features = false, optional = true }
thiserror = "1.0"
[dev-dependencies]

View File

@ -15,7 +15,7 @@ solana-cli-config = { version = "1.3.0" }
solana-client = { version = "1.3.0" }
solana-logger = { version = "1.3.0" }
solana-sdk = { version = "1.3.0" }
spl-token = { package = "spl-token", version = "1.0", path="../token" }
spl-token = { package = "spl-token", version = "1.0", path="../program" }
[[bin]]
name = "spl-token"