Create lang dir

This commit is contained in:
Armani Ferrante 2021-01-30 05:14:45 -08:00
parent 09ed7f670d
commit f0297012c6
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
40 changed files with 31 additions and 32 deletions

View File

@ -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] [workspace]
members = [ members = [
"cli", "cli",
"client", "client",
"syn", "lang",
"attribute/*", "lang/attribute/*",
"derive/*", "lang/derive/*",
"lang/syn",
"spl", "spl",
] ]

View File

@ -12,8 +12,8 @@ path = "src/main.rs"
clap = "3.0.0-beta.1" clap = "3.0.0-beta.1"
anyhow = "1.0.32" anyhow = "1.0.32"
syn = { version = "1.0.54", features = ["full", "extra-traits"] } syn = { version = "1.0.54", features = ["full", "extra-traits"] }
anchor-lang = { path = "../" } anchor-lang = { path = "../lang" }
anchor-syn = { path = "../syn", features = ["idl"] } anchor-syn = { path = "../lang/syn", features = ["idl"] }
serde_json = "1.0" serde_json = "1.0"
shellexpand = "2.1.0" shellexpand = "2.1.0"
serde_yaml = "0.8" serde_yaml = "0.8"

View File

@ -5,7 +5,7 @@ authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
anchor-lang = { path = "../" } anchor-lang = { path = "../lang" }
solana-client = "1.5.0" solana-client = "1.5.0"
solana-sdk = "1.5.0" solana-sdk = "1.5.0"
thiserror = "1.0.20" thiserror = "1.0.20"

23
lang/Cargo.toml Normal file
View File

@ -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"

View File

@ -230,7 +230,6 @@ pub fn generate(accs: AccountsStruct) -> proc_macro2::TokenStream {
}; };
quote! { quote! {
mod #account_mod_name { mod #account_mod_name {
use super::*; use super::*;
use anchor_lang::prelude::borsh; use anchor_lang::prelude::borsh;

View File

@ -5,5 +5,5 @@ authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
anchor-lang = { path = "../", features = ["derive"] } anchor-lang = { path = "../lang", features = ["derive"] }
spl-token = { version = "3.0.1", features = ["no-entrypoint"] } spl-token = { version = "3.0.1", features = ["no-entrypoint"] }