Skip to content

Commit 7670435

Browse files
committed
Format TOML files with tombi
This is just a formatting change. Reproduce by running: ```bash tombi format program tombi format clients/rust tombi format pinocchio/program tombi format pinocchio/interface tombi format interface ```
1 parent 35c1162 commit 7670435

File tree

7 files changed

+63
-64
lines changed

7 files changed

+63
-64
lines changed

Cargo.toml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,27 @@ members = ["interface", "pinocchio/interface", "pinocchio/program", "program"]
44

55
[workspace.package]
66
authors = ["Anza Maintainers <maintainers@anza.xyz>"]
7+
edition = "2021"
78
repository = "https://github.com/solana-program/token"
89
license = "Apache-2.0"
9-
edition = "2021"
10+
11+
[workspace.dependencies]
12+
mollusk-svm = "0.6.3"
13+
mollusk-svm-fuzz-fixture = "0.6.3"
14+
num-traits = "0.2"
15+
pinocchio = "0.9.2"
16+
solana-instruction = "3.0.0"
17+
solana-program-error = "3.0.0"
18+
solana-program-option = "3.0.0"
19+
solana-program-pack = "3.0.0"
20+
solana-pubkey = "3.0.0"
21+
solana-system-interface = { version = "2.0", features = ["bincode"] }
1022

1123
[workspace.lints.rust.unexpected_cfgs]
1224
level = "warn"
1325
check-cfg = [
14-
'cfg(target_os, values("solana"))',
15-
'cfg(feature, values("custom-alloc", "custom-panic", "frozen-abi", "no-entrypoint"))',
26+
'cfg(target_os, values("solana"))',
27+
'cfg(feature, values("custom-alloc", "custom-panic", "frozen-abi", "no-entrypoint"))',
1628
]
1729

1830
[workspace.metadata.cli]
@@ -31,15 +43,3 @@ config = "scripts/spellcheck.toml"
3143
pre-release-commit-message = "Publish {{crate_name}} v{{version}}"
3244
tag-message = "Publish {{crate_name}} v{{version}}"
3345
consolidate-commits = false
34-
35-
[workspace.dependencies]
36-
mollusk-svm = "0.6.3"
37-
mollusk-svm-fuzz-fixture = "0.6.3"
38-
num-traits = "0.2"
39-
pinocchio = "0.9.2"
40-
solana-instruction = "3.0.0"
41-
solana-program-error = "3.0.0"
42-
solana-program-option = "3.0.0"
43-
solana-program-pack = "3.0.0"
44-
solana-pubkey = "3.0.0"
45-
solana-system-interface = { version = "2.0", features=["bincode"] }

clients/rust/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
[package]
22
name = "spl-token-client"
33
version = "0.0.0"
4-
description = "A generated Rust library for the Token program"
5-
repository = "https://github.com/solana-program/token"
64
edition = "2021"
5+
description = "A generated Rust library for the Token program"
76
readme = "README.md"
7+
repository = "https://github.com/solana-program/token"
88
license-file = "../../LICENSE"
99

10-
[features]
11-
test-sbf = []
12-
serde = ["dep:serde", "dep:serde_with"]
13-
1410
[dependencies]
1511
borsh = "^0.10"
1612
num-derive = "^0.3"
@@ -19,3 +15,7 @@ serde = { version = "^1.0", features = ["derive"], optional = true }
1915
serde_with = { version = "^3.0", optional = true }
2016
solana-program = "2.1"
2117
thiserror = "^1.0"
18+
19+
[features]
20+
serde = ["dep:serde", "dep:serde_with"]
21+
test-sbf = []

interface/Cargo.toml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
[package]
22
name = "spl-token-interface"
33
version = "2.0.0"
4+
authors = { workspace = true }
5+
edition = { workspace = true }
46
description = "Solana Program Library Token Interface"
57
documentation = "https://docs.rs/spl-token-interface"
68
readme = "README.md"
7-
authors = { workspace = true }
89
repository = { workspace = true }
910
license = { workspace = true }
10-
edition = { workspace = true }
11+
12+
[package.metadata.docs.rs]
13+
targets = ["x86_64-unknown-linux-gnu"]
14+
15+
[package.metadata.solana]
16+
program-id = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
17+
18+
[lib]
19+
crate-type = ["lib"]
1120

1221
[dependencies]
1322
arrayref = "0.3.9"
@@ -28,14 +37,5 @@ proptest = "1.5"
2837
strum = "0.24"
2938
strum_macros = "0.24"
3039

31-
[lib]
32-
crate-type = ["lib"]
33-
34-
[package.metadata.docs.rs]
35-
targets = ["x86_64-unknown-linux-gnu"]
36-
3740
[lints]
3841
workspace = true
39-
40-
[package.metadata.solana]
41-
program-id = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"

pinocchio/interface/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "pinocchio-token-interface"
33
version = "0.0.0"
4+
authors = { workspace = true }
5+
edition = { workspace = true }
46
description = "Pinocchio instructions and types for interacting with SPL Token program"
5-
authors = { workspace = true}
6-
repository = { workspace = true}
7-
license = { workspace = true}
8-
edition = { workspace = true}
97
readme = "./README.md"
8+
repository = { workspace = true }
9+
license = { workspace = true }
1010

1111
[lib]
1212
crate-type = ["rlib"]

pinocchio/program/Cargo.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
[package]
22
name = "pinocchio-token-program"
33
version = "0.0.0"
4+
authors = { workspace = true }
5+
edition = { workspace = true }
46
description = "A pinocchio-based Token (aka 'p-token') program"
5-
authors = { workspace = true}
6-
repository = { workspace = true}
7-
license = { workspace = true}
8-
edition = { workspace = true}
97
readme = "./README.md"
8+
repository = { workspace = true }
9+
license = { workspace = true }
1010

1111
[lib]
1212
crate-type = ["cdylib"]
1313

14-
[features]
15-
logging = []
16-
1714
[dependencies]
1815
pinocchio = { workspace = true }
1916
pinocchio-log = { version = "0.5.1", default-features = false }
20-
pinocchio-token-interface = { version = "^0", path = "../interface" }
17+
pinocchio-token-interface = { path = "../interface", version = "^0" }
2118

2219
[dev-dependencies]
2320
agave-feature-set = "3.0.0"
@@ -37,11 +34,14 @@ solana-rent = "3.0.0"
3734
solana-sdk-ids = "3.0.0"
3835
solana-signature = "3.0.0"
3936
solana-signer = "3.0.0"
37+
solana-system-interface = { workspace = true }
4038
solana-transaction = "3.0.0"
4139
solana-transaction-error = "3.0.0"
42-
solana-system-interface = { workspace = true }
43-
spl-token-interface = "2"
4440
spl-token-2022-interface = "2"
41+
spl-token-interface = "2"
42+
43+
[features]
44+
logging = []
4545

4646
[lints]
4747
workspace = true

program/Cargo.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
[package]
22
name = "spl-token"
33
version = "9.0.0"
4+
authors = { workspace = true }
5+
edition = { workspace = true }
46
description = "Solana Program Library Token"
5-
authors = { workspace = true}
6-
repository = { workspace = true}
7-
license = { workspace = true}
8-
edition = { workspace = true}
7+
repository = { workspace = true }
8+
license = { workspace = true }
99

10-
[features]
11-
no-entrypoint = []
12-
test-sbf = []
10+
[package.metadata.docs.rs]
11+
targets = ["x86_64-unknown-linux-gnu"]
12+
13+
[package.metadata.solana]
14+
program-id = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
15+
16+
[lib]
17+
crate-type = ["cdylib", "lib"]
1318

1419
[dependencies]
1520
arrayref = "0.3.9"
1621
bytemuck = "1.20.0"
1722
num-derive = "0.4"
18-
num-traits = { workspace = true }
1923
num_enum = "0.7.3"
24+
num-traits = { workspace = true }
2025
solana-account-info = "3.0.0"
2126
solana-cpi = "3.0.0"
2227
solana-instruction = { workspace = true }
@@ -44,18 +49,13 @@ solana-account-info = "3.0.0"
4449
solana-clock = "3.0.0"
4550
solana-native-token = "3.0.0"
4651
solana-rent = { version = "3.0.0", features = ["sysvar"] }
47-
solana-system-interface = { version = "2.0", features=["bincode"] }
52+
solana-system-interface = { version = "2.0", features = ["bincode"] }
4853
strum = "0.24"
4954
strum_macros = "0.24"
5055

51-
[lib]
52-
crate-type = ["cdylib", "lib"]
53-
54-
[package.metadata.docs.rs]
55-
targets = ["x86_64-unknown-linux-gnu"]
56+
[features]
57+
no-entrypoint = []
58+
test-sbf = []
5659

5760
[lints]
5861
workspace = true
59-
60-
[package.metadata.solana]
61-
program-id = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"

scripts/spellcheck.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ use_builtin = true
33
skip_os_lookups = false
44
search_dirs = ["."]
55
extra_dictionaries = ["solana.dic"]
6-

0 commit comments

Comments
 (0)