Jelajahi Sumber

Set alpha and borsh versions

Armani Ferrante 4 tahun lalu
induk
melakukan
5d571ee9fc

+ 3 - 1
.gitignore

@@ -7,4 +7,6 @@ target/
 *.swp
 *.swo
 .anchor
-test-ledger
+test-ledger
+examples/*/Cargo.lock
+examples/**/Cargo.lock

+ 6 - 6
Cargo.lock

@@ -45,7 +45,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-attribute-access-control"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anchor-syn",
  "anyhow",
@@ -56,7 +56,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-attribute-account"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anchor-syn",
  "anyhow",
@@ -67,7 +67,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-attribute-program"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anchor-syn",
  "anyhow",
@@ -98,7 +98,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-derive-accounts"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anchor-syn",
  "anyhow",
@@ -109,7 +109,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-lang"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anchor-attribute-access-control",
  "anchor-attribute-account",
@@ -123,7 +123,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-syn"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 dependencies = [
  "anyhow",
  "heck",

+ 6 - 6
Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-lang"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 description = ""
 repository = "https://github.com/project-serum/serum-dex"
 edition = "2018"
@@ -13,11 +13,11 @@ default = []
 thiserror = "1.0.20"
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
-anchor-derive-accounts = { path = "./derive/accounts" }
-anchor-attribute-program = { path = "./attribute/program" }
-anchor-attribute-access-control = { path = "./attribute/access-control" }
-anchor-attribute-account = { path = "./attribute/account" }
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+anchor-derive-accounts = { path = "./derive/accounts", version = "0.0.0-alpha.0" }
+anchor-attribute-program = { path = "./attribute/program", version = "0.0.0-alpha.0" }
+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" }
+serum-borsh = { version = "0.7.2+serum.2", features = ["serum-program"] }
 
 [workspace]
 members = [

+ 1 - 1
attribute/access-control/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-attribute-access-control"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 authors = ["armaniferrante <armaniferrante@gmail.com>"]
 edition = "2018"
 

+ 1 - 1
attribute/account/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-attribute-account"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 authors = ["armaniferrante <armaniferrante@gmail.com>"]
 edition = "2018"
 

+ 1 - 1
attribute/program/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-attribute-program"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 authors = ["armaniferrante <armaniferrante@gmail.com>"]
 edition = "2018"
 

+ 2 - 2
cli/src/template.rs

@@ -27,10 +27,10 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = {{ git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }}
+anchor-lang = {{ git = "https://github.com/project-serum/anchor", features = ["derive"] }}
+serum-borsh = {{ version = "0.7.2+serum.1", features = ["serum-program"] }}
 solana-program = "1.4.3"
 solana-sdk = {{ version = "1.3.14", default-features = false, features = ["program"] }}
-anchor-lang = {{ git = "https://github.com/project-serum/anchor", features = ["derive"] }}
 "#,
         name,
         name.to_snake_case(),

+ 1 - 1
derive/accounts/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-derive-accounts"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 authors = ["armaniferrante <armaniferrante@gmail.com>"]
 edition = "2018"
 

+ 1 - 1
examples/composite/programs/composite/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/sysvars/programs/sysvars/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/tutorial/basic-0/programs/basic-0/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/tutorial/basic-1/programs/basic-1/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/tutorial/basic-2/programs/basic-2/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/tutorial/basic-3/programs/puppet-master/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
examples/tutorial/basic-3/programs/puppet/Cargo.toml

@@ -13,7 +13,7 @@ no-entrypoint = []
 cpi = ["no-entrypoint"]
 
 [dependencies]
-borsh = { git = "https://github.com/project-serum/borsh", branch = "serum", features = ["serum-program"] }
+serum-borsh = { version = "0.7.2+serum.1", features = ["serum-program"] }
 solana-program = "1.4.3"
 solana-sdk = { version = "1.3.14", default-features = false, features = ["program"] }
 anchor-lang = { git = "https://github.com/project-serum/anchor", features = ["derive"] }

+ 1 - 1
syn/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-syn"
-version = "0.1.0"
+version = "0.0.0-alpha.0"
 authors = ["armaniferrante <armaniferrante@gmail.com>"]
 edition = "2018"