Create lang dir
This commit is contained in:
parent
09ed7f670d
commit
f0297012c6
31
Cargo.toml
31
Cargo.toml
|
@ -1,33 +1,10 @@
|
|||
[package]
|
||||
name = "anchor-lang"
|
||||
version = "0.0.0-alpha.0"
|
||||
authors = ["Serum Foundation <foundation@projectserum.com>"]
|
||||
repository = "https://github.com/project-serum/anchor"
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
description = "Solana Sealevel eDSL"
|
||||
|
||||
[features]
|
||||
derive = []
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-account = { path = "./attribute/account", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-error = { path = "./attribute/error" }
|
||||
anchor-attribute-program = { path = "./attribute/program", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-state = { path = "./attribute/state", version = "0.0.0-alpha.0" }
|
||||
anchor-derive-accounts = { path = "./derive/accounts", version = "0.0.0-alpha.0" }
|
||||
serum-borsh = { version = "0.8.0-serum.1", features = ["serum-program"] }
|
||||
solana-program = "=1.5.0"
|
||||
thiserror = "1.0.20"
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"cli",
|
||||
"client",
|
||||
"syn",
|
||||
"attribute/*",
|
||||
"derive/*",
|
||||
"lang",
|
||||
"lang/attribute/*",
|
||||
"lang/derive/*",
|
||||
"lang/syn",
|
||||
"spl",
|
||||
]
|
||||
|
|
|
@ -12,8 +12,8 @@ path = "src/main.rs"
|
|||
clap = "3.0.0-beta.1"
|
||||
anyhow = "1.0.32"
|
||||
syn = { version = "1.0.54", features = ["full", "extra-traits"] }
|
||||
anchor-lang = { path = "../" }
|
||||
anchor-syn = { path = "../syn", features = ["idl"] }
|
||||
anchor-lang = { path = "../lang" }
|
||||
anchor-syn = { path = "../lang/syn", features = ["idl"] }
|
||||
serde_json = "1.0"
|
||||
shellexpand = "2.1.0"
|
||||
serde_yaml = "0.8"
|
||||
|
|
|
@ -5,7 +5,7 @@ authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anchor-lang = { path = "../" }
|
||||
anchor-lang = { path = "../lang" }
|
||||
solana-client = "1.5.0"
|
||||
solana-sdk = "1.5.0"
|
||||
thiserror = "1.0.20"
|
|
@ -0,0 +1,23 @@
|
|||
[package]
|
||||
name = "anchor-lang"
|
||||
version = "0.0.0-alpha.0"
|
||||
authors = ["Serum Foundation <foundation@projectserum.com>"]
|
||||
repository = "https://github.com/project-serum/anchor"
|
||||
edition = "2018"
|
||||
license = "Apache-2.0"
|
||||
description = "Solana Sealevel eDSL"
|
||||
|
||||
[features]
|
||||
derive = []
|
||||
default = []
|
||||
|
||||
[dependencies]
|
||||
anchor-attribute-access-control = { path = "./attribute/access-control", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-account = { path = "./attribute/account", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-error = { path = "./attribute/error" }
|
||||
anchor-attribute-program = { path = "./attribute/program", version = "0.0.0-alpha.0" }
|
||||
anchor-attribute-state = { path = "./attribute/state", version = "0.0.0-alpha.0" }
|
||||
anchor-derive-accounts = { path = "./derive/accounts", version = "0.0.0-alpha.0" }
|
||||
serum-borsh = { version = "0.8.0-serum.1", features = ["serum-program"] }
|
||||
solana-program = "=1.5.0"
|
||||
thiserror = "1.0.20"
|
|
@ -230,7 +230,6 @@ pub fn generate(accs: AccountsStruct) -> proc_macro2::TokenStream {
|
|||
};
|
||||
|
||||
quote! {
|
||||
|
||||
mod #account_mod_name {
|
||||
use super::*;
|
||||
use anchor_lang::prelude::borsh;
|
|
@ -5,5 +5,5 @@ authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
anchor-lang = { path = "../", features = ["derive"] }
|
||||
anchor-lang = { path = "../lang", features = ["derive"] }
|
||||
spl-token = { version = "3.0.1", features = ["no-entrypoint"] }
|
||||
|
|
Loading…
Reference in New Issue