浏览代码

Update solana tooling to v1.6.3 (#139)

Armani Ferrante 4 年之前
父节点
当前提交
8289e47513
共有 37 个文件被更改,包括 218 次插入256 次删除
  1. 1 1
      .travis.yml
  2. 1 0
      CHANGELOG.md
  3. 194 196
      Cargo.lock
  4. 4 4
      cli/Cargo.toml
  5. 1 3
      cli/src/template.rs
  6. 2 2
      client/Cargo.toml
  7. 1 1
      docs/src/getting-started/installation.md
  8. 0 2
      examples/cashiers-check/programs/cashiers-check/src/lib.rs
  9. 0 2
      examples/composite/programs/composite/src/lib.rs
  10. 0 2
      examples/errors/programs/errors/src/lib.rs
  11. 2 1
      examples/events/programs/events/src/lib.rs
  12. 0 2
      examples/interface/programs/counter-auth/src/lib.rs
  13. 0 2
      examples/interface/programs/counter/src/lib.rs
  14. 0 2
      examples/lockup/programs/lockup/src/lib.rs
  15. 0 2
      examples/lockup/programs/registry/src/lib.rs
  16. 0 2
      examples/misc/programs/misc/src/lib.rs
  17. 0 2
      examples/multisig/programs/multisig/src/lib.rs
  18. 0 2
      examples/spl/token-proxy/programs/token-proxy/src/lib.rs
  19. 0 2
      examples/sysvars/programs/sysvars/src/lib.rs
  20. 0 2
      examples/tutorial/basic-0/programs/basic-0/src/lib.rs
  21. 0 2
      examples/tutorial/basic-1/programs/basic-1/src/lib.rs
  22. 0 2
      examples/tutorial/basic-2/programs/basic-2/src/lib.rs
  23. 0 2
      examples/tutorial/basic-3/programs/puppet-master/src/lib.rs
  24. 0 2
      examples/tutorial/basic-3/programs/puppet/src/lib.rs
  25. 0 2
      examples/tutorial/basic-4/programs/basic-4/src/lib.rs
  26. 0 2
      examples/typescript/programs/typescript/src/lib.rs
  27. 1 1
      lang/Cargo.toml
  28. 1 1
      lang/attribute/access-control/Cargo.toml
  29. 1 1
      lang/attribute/account/Cargo.toml
  30. 1 1
      lang/attribute/error/Cargo.toml
  31. 1 1
      lang/attribute/event/Cargo.toml
  32. 1 1
      lang/attribute/interface/Cargo.toml
  33. 1 1
      lang/attribute/program/Cargo.toml
  34. 1 1
      lang/attribute/state/Cargo.toml
  35. 1 1
      lang/derive/accounts/Cargo.toml
  36. 2 2
      lang/syn/Cargo.toml
  37. 1 1
      spl/Cargo.toml

+ 1 - 1
.travis.yml

@@ -22,7 +22,7 @@ _examples: &examples
   - npm install -g @project-serum/common
   - npm install -g @solana/spl-token
   - sudo apt-get install -y pkg-config build-essential libudev-dev
-  - sh -c "$(curl -sSfL https://release.solana.com/v1.5.5/install)"
+  - sh -c "$(curl -sSfL https://release.solana.com/v1.6.3/install)"
   - export PATH="/home/travis/.local/share/solana/install/active_release/bin:$PATH"
   - export NODE_PATH="/home/travis/.nvm/versions/node/v$NODE_VERSION/lib/node_modules/:$NODE_PATH"
   - yes | solana-keygen new

+ 1 - 0
CHANGELOG.md

@@ -24,6 +24,7 @@ incremented for features.
 
 * client: Replace url str with `Cluster` struct when constructing clients ([#89](https://github.com/project-serum/anchor/pull/89)).
 * lang: Changes the account discriminator of `IdlAccount` to be namespaced by `"internal"` ([#128](https://github.com/project-serum/anchor/pull/128)).
+* lang, spl, cli: Upgrade solana toolchain to 1.6.3, a major version upgrade even though only the minor version is incremented. This allows for the removal of `-#![feature(proc_macro_hygiene)]`. ([#139](https://github.com/project-serum/anchor/pull/139)).
 
 ## [0.3.0] - 2021-03-12
 

文件差异内容过多而无法显示
+ 194 - 196
Cargo.lock


+ 4 - 4
cli/Cargo.toml

@@ -15,17 +15,17 @@ default = []
 [dependencies]
 clap = "3.0.0-beta.1"
 anyhow = "1.0.32"
-syn = { version = "1.0.54", features = ["full", "extra-traits"] }
+syn = { version = "1.0.60", features = ["full", "extra-traits"] }
 anchor-lang = { path = "../lang" }
 anchor-syn = { path = "../lang/syn", features = ["idl"] }
 serde_json = "1.0"
 shellexpand = "2.1.0"
 serde_yaml = "0.8"
 toml = "0.5.8"
-serde = { version = "1.0", features = ["derive"] }
+serde = { version = "1.0.122", features = ["derive"] }
 solana-sdk = "1.5.8"
-solana-program = "=1.5.15"
-solana-client = "=1.5.15"
+solana-program = "1.6.3"
+solana-client = "1.6.3"
 serum-common = { git = "https://github.com/project-serum/serum-dex", features = ["client"] }
 dirs = "3.0"
 heck = "0.3.1"

+ 1 - 3
cli/src/template.rs

@@ -104,9 +104,7 @@ features = []"#
 
 pub fn lib_rs(name: &str) -> String {
     format!(
-        r#"#![feature(proc_macro_hygiene)]
-
-use anchor_lang::prelude::*;
+        r#"use anchor_lang::prelude::*;
 
 #[program]
 pub mod {} {{

+ 2 - 2
client/Cargo.toml

@@ -10,6 +10,6 @@ description = "Rust client for Anchor programs"
 anchor-lang = { path = "../lang", version = "0.3.0" }
 anyhow = "1.0.32"
 regex = "1.4.5"
-solana-client = "=1.5.15"
-solana-sdk = "=1.5.15"
+solana-client = "1.6.3"
+solana-sdk = "1.6.3"
 thiserror = "1.0.20"

+ 1 - 1
docs/src/getting-started/installation.md

@@ -18,7 +18,7 @@ rustup component add rustfmt
 See the solana [docs](https://docs.solana.com/cli/install-solana-cli-tools) for installation instructions. Version 1.5.5 is required. On macOS and Linux,
 
 ```bash
-sh -c "$(curl -sSfL https://release.solana.com/v1.5.5/install)"
+sh -c "$(curl -sSfL https://release.solana.com/v1.6.3/install)"
 ```
 
 ## Install Mocha

+ 0 - 2
examples/cashiers-check/programs/cashiers-check/src/lib.rs

@@ -3,8 +3,6 @@
 //! reside until they are "cashed" by the intended recipient. The creator of
 //! the check can cancel the check at any time to get back the funds.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use anchor_spl::token::{self, TokenAccount, Transfer};
 use std::convert::Into;

+ 0 - 2
examples/composite/programs/composite/src/lib.rs

@@ -1,8 +1,6 @@
 //! This example demonstrates the ability to compose together multiple
 //! structs deriving `Accounts`. See `CompositeUpdate`, below.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/errors/programs/errors/src/lib.rs

@@ -1,8 +1,6 @@
 //! This example demonstrates how custom errors and associated error messsages
 //! can be defined and transparently propagated to clients.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 2 - 1
examples/events/programs/events/src/lib.rs

@@ -1,4 +1,5 @@
-#![feature(proc_macro_hygiene)]
+//! This example demonstrates how to emit an event, which can be
+//! subscribed to by a client.
 
 use anchor_lang::prelude::*;
 

+ 0 - 2
examples/interface/programs/counter-auth/src/lib.rs

@@ -3,8 +3,6 @@
 //! to be incremented if it changes the counter from odd -> even or even -> odd.
 //! Creative, I know. :P.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use counter::Auth;
 

+ 0 - 2
examples/interface/programs/counter/src/lib.rs

@@ -6,8 +6,6 @@
 //! Here, we have a counter, where, in order to set the count, the `Auth`
 //! program must first approve the transaction.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/lockup/programs/lockup/src/lib.rs

@@ -1,8 +1,6 @@
 //! A relatively advanced example of a lockup program. If you're new to Anchor,
 //! it's suggested to start with the other examples.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use anchor_lang::solana_program::instruction::Instruction;
 use anchor_lang::solana_program::program;

+ 0 - 2
examples/lockup/programs/registry/src/lib.rs

@@ -1,8 +1,6 @@
 //! A relatively advanced example of a staking program. If you're new to Anchor,
 //! it's suggested to start with the other examples.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use anchor_lang::solana_program::program_option::COption;
 use anchor_spl::token::{self, Mint, TokenAccount, Transfer};

+ 0 - 2
examples/misc/programs/misc/src/lib.rs

@@ -1,8 +1,6 @@
 //! Misc example is a catchall program for testing unrelated features.
 //! It's not too instructive/coherent by itself, so please see other examples.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/multisig/programs/multisig/src/lib.rs

@@ -17,8 +17,6 @@
 //! the `execute_transaction`, once enough (i.e. `threhsold`) of the owners have
 //! signed.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use anchor_lang::solana_program;
 use anchor_lang::solana_program::instruction::Instruction;

+ 0 - 2
examples/spl/token-proxy/programs/token-proxy/src/lib.rs

@@ -1,7 +1,5 @@
 //! This example demonstrates the use of the `anchor_spl::token` CPI client.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 use anchor_spl::token::{self, Burn, MintTo, Transfer};
 

+ 0 - 2
examples/sysvars/programs/sysvars/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/tutorial/basic-0/programs/basic-0/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/tutorial/basic-1/programs/basic-1/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/tutorial/basic-2/programs/basic-2/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 // Define the program's instruction handlers.

+ 0 - 2
examples/tutorial/basic-3/programs/puppet-master/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 // #region core
 use anchor_lang::prelude::*;
 use puppet::{Puppet, SetData};

+ 0 - 2
examples/tutorial/basic-3/programs/puppet/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 0 - 2
examples/tutorial/basic-4/programs/basic-4/src/lib.rs

@@ -1,5 +1,3 @@
-#![feature(proc_macro_hygiene)]
-
 // #region code
 use anchor_lang::prelude::*;
 

+ 0 - 2
examples/typescript/programs/typescript/src/lib.rs

@@ -1,8 +1,6 @@
 //! The typescript example serves to show how one would setup an Anchor
 //! workspace with TypeScript tests and migrations.
 
-#![feature(proc_macro_hygiene)]
-
 use anchor_lang::prelude::*;
 
 #[program]

+ 1 - 1
lang/Cargo.toml

@@ -21,6 +21,6 @@ anchor-attribute-interface = { path = "./attribute/interface", version = "0.3.0"
 anchor-derive-accounts = { path = "./derive/accounts", version = "0.3.0" }
 anchor-attribute-event = { path = "./attribute/event", version = "0.3.0" }
 borsh = "0.8.2"
-solana-program = "=1.5.15"
+solana-program = "1.6.3"
 thiserror = "1.0.20"
 base64 = "0.13.0"

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

@@ -13,7 +13,7 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0" }
 regex = "1.0"

+ 1 - 1
lang/attribute/account/Cargo.toml

@@ -13,6 +13,6 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0", features = ["hash"] }

+ 1 - 1
lang/attribute/error/Cargo.toml

@@ -13,5 +13,5 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anchor-syn = { path = "../../syn", version = "0.3.0" }

+ 1 - 1
lang/attribute/event/Cargo.toml

@@ -13,6 +13,6 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0", features = ["hash"] }

+ 1 - 1
lang/attribute/interface/Cargo.toml

@@ -13,7 +13,7 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0" }
 heck = "0.3.2"

+ 1 - 1
lang/attribute/program/Cargo.toml

@@ -13,6 +13,6 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0" }

+ 1 - 1
lang/attribute/state/Cargo.toml

@@ -13,6 +13,6 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0" }

+ 1 - 1
lang/derive/accounts/Cargo.toml

@@ -13,6 +13,6 @@ proc-macro = true
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full"] }
+syn = { version = "1.0.60", features = ["full"] }
 anyhow = "1.0.32"
 anchor-syn = { path = "../../syn", version = "0.3.0" }

+ 2 - 2
lang/syn/Cargo.toml

@@ -15,10 +15,10 @@ default = []
 [dependencies]
 proc-macro2 = "1.0"
 quote = "1.0"
-syn = { version = "=1.0.57", features = ["full", "extra-traits", "parsing"] }
+syn = { version = "1.0.60", features = ["full", "extra-traits", "parsing"] }
 anyhow = "1.0.32"
 heck = "0.3.1"
-serde = { version = "1.0.118", features = ["derive"] }
+serde = { version = "1.0.122", features = ["derive"] }
 serde_json = "1.0"
 sha2 = "0.9.2"
 thiserror = "1.0"

+ 1 - 1
spl/Cargo.toml

@@ -9,4 +9,4 @@ description = "CPI clients for SPL programs"
 [dependencies]
 anchor-lang = { path = "../lang", version = "0.3.0", features = ["derive"] }
 spl-token = { version = "3.0.1", features = ["no-entrypoint"] }
-solana-program = "=1.5.15"
+solana-program = "1.6.3"

部分文件因为文件数量过多而无法显示