Remove `rust-version` from crate manifests (#3000)

This commit is contained in:
acheron 2024-05-31 23:32:40 +02:00 committed by GitHub
parent 56017029b4
commit efe2e40c12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
64 changed files with 3 additions and 69 deletions

View File

@ -38,6 +38,7 @@ The minor version will be incremented upon a breaking change and the patch versi
- cli: Fix IDL write getting corrupted from retries ([#2964](https://github.com/coral-xyz/anchor/pull/2964)). - cli: Fix IDL write getting corrupted from retries ([#2964](https://github.com/coral-xyz/anchor/pull/2964)).
- idl: Fix `unexpected_cfgs` build warning ([#2992](https://github.com/coral-xyz/anchor/pull/2992)). - idl: Fix `unexpected_cfgs` build warning ([#2992](https://github.com/coral-xyz/anchor/pull/2992)).
- lang: Make tuple struct fields public in `declare_program!` ([#2994](https://github.com/coral-xyz/anchor/pull/2994)). - lang: Make tuple struct fields public in `declare_program!` ([#2994](https://github.com/coral-xyz/anchor/pull/2994)).
- Remove `rust-version` from crate manifests ([#3000](https://github.com/coral-xyz/anchor/pull/3000)).
### Breaking ### Breaking

View File

@ -1,7 +1,6 @@
[package] [package]
name = "avm" name = "avm"
version = "0.30.0" version = "0.30.0"
rust-version = "1.60"
edition = "2021" edition = "2021"
[[bin]] [[bin]]

View File

@ -2,7 +2,6 @@
name = "anchor-client" name = "anchor-client"
version = "0.30.0" version = "0.30.0"
authors = ["Anchor Maintainers <accounts@200ms.io>"] authors = ["Anchor Maintainers <accounts@200ms.io>"]
rust-version = "1.60"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
description = "An RPC client to interact with Anchor programs" description = "An RPC client to interact with Anchor programs"

View File

@ -2,7 +2,6 @@
name = "example" name = "example"
version = "0.1.0" version = "0.1.0"
authors = ["Armani Ferrante <armaniferrante@gmail.com>"] authors = ["Armani Ferrante <armaniferrante@gmail.com>"]
rust-version = "1.60"
edition = "2021" edition = "2021"
[workspace] [workspace]

View File

@ -3,22 +3,17 @@ use serde::{Deserialize, Serialize};
use std::str::FromStr; use std::str::FromStr;
use url::Url; use url::Url;
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq, Ord, PartialOrd)] #[derive(Serialize, Deserialize, Clone, Debug, Default, Eq, PartialEq, Ord, PartialOrd)]
pub enum Cluster { pub enum Cluster {
Testnet, Testnet,
Mainnet, Mainnet,
Devnet, Devnet,
#[default]
Localnet, Localnet,
Debug, Debug,
Custom(String, String), Custom(String, String),
} }
impl Default for Cluster {
fn default() -> Self {
Cluster::Localnet
}
}
impl FromStr for Cluster { impl FromStr for Cluster {
type Err = anyhow::Error; type Err = anyhow::Error;
fn from_str(s: &str) -> Result<Cluster> { fn from_str(s: &str) -> Result<Cluster> {

View File

@ -2,7 +2,6 @@
name = "basic-0" name = "basic-0"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "basic-1" name = "basic-1"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "basic-2" name = "basic-2"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "puppet-master" name = "puppet-master"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "puppet" name = "puppet"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "basic-4" name = "basic-4"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "basic-5" name = "basic-5"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -3,7 +3,6 @@ name = "anchor-lang-idl"
version = "0.1.0" version = "0.1.0"
authors = ["Anchor Maintainers <accounts@200ms.io>"] authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor framework IDL" description = "Anchor framework IDL"

View File

@ -3,7 +3,6 @@ name = "anchor-lang"
version = "0.30.0" version = "0.30.0"
authors = ["Anchor Maintainers <accounts@200ms.io>"] authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
description = "Solana Sealevel eDSL" description = "Solana Sealevel eDSL"

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor attribute macro for instruction access control" description = "Anchor attribute macro for instruction access control"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor attribute macro for defining an account" description = "Anchor attribute macro for defining an account"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor attribute macro for creating constant types" description = "Anchor attribute macro for creating constant types"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor attribute macro for creating error types" description = "Anchor attribute macro for creating error types"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor attribute macro for defining a program" description = "Anchor attribute macro for defining a program"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor Derive macro for accounts" description = "Anchor Derive macro for accounts"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor Derive macro for serialization and deserialization" description = "Anchor Derive macro for serialization and deserialization"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor Derive macro to automatically calculate the size of a structure or an enum" description = "Anchor Derive macro to automatically calculate the size of a structure or an enum"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <accounts@200ms.io>"]
repository = "https://github.com/coral-xyz/anchor" repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0" license = "Apache-2.0"
description = "Anchor syntax parsing and code generation tools" description = "Anchor syntax parsing and code generation tools"
rust-version = "1.60"
edition = "2021" edition = "2021"
[package.metadata.docs.rs] [package.metadata.docs.rs]

View File

@ -2,7 +2,6 @@
name = "anchor-spl" name = "anchor-spl"
version = "0.30.0" version = "0.30.0"
authors = ["Anchor Maintainers <accounts@200ms.io>"] authors = ["Anchor Maintainers <accounts@200ms.io>"]
rust-version = "1.60"
edition = "2021" edition = "2021"
license = "Apache-2.0" license = "Apache-2.0"
description = "CPI clients for SPL programs" description = "CPI clients for SPL programs"

View File

@ -2,7 +2,6 @@
name = "bpf-upgradeable-state" name = "bpf-upgradeable-state"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "cashiers-check" name = "cashiers-check"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "cfo" name = "cfo"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "chat" name = "chat"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "composite" name = "composite"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "native-system" name = "native-system"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "spl-token" name = "spl-token"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "declare-program" name = "declare-program"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "external" name = "external"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "errors" name = "errors"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "escrow" name = "escrow"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "events" name = "events"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "docs" name = "docs"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "new-idl" name = "new-idl"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "relations-derivation" name = "relations-derivation"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "ido-pool" name = "ido-pool"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "lockup" name = "lockup"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "registry" name = "registry"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "misc-optional" name = "misc-optional"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.56"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "misc" name = "misc"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "remaining-accounts" name = "remaining-accounts"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -1,7 +1,6 @@
[package] [package]
name = "shared" name = "shared"
version = "0.1.0" version = "0.1.0"
rust-version = "1.60"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,6 @@
name = "multisig" name = "multisig"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "pda-derivation" name = "pda-derivation"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "pyth" name = "pyth"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "relations-derivation" name = "relations-derivation"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "metadata" name = "metadata"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "token-extensions" name = "token-extensions"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "token-proxy" name = "token-proxy"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "token-wrapper" name = "token-wrapper"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "transfer-hook" name = "transfer-hook"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "swap" name = "swap"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "system-accounts" name = "system-accounts"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "sysvars" name = "sysvars"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "tictactoe" name = "tictactoe"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -1,7 +1,6 @@
[package] [package]
name = "shared" name = "shared"
version = "0.1.0" version = "0.1.0"
rust-version = "1.60"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,6 @@
name = "typescript" name = "typescript"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -1,7 +1,6 @@
[package] [package]
name = "shared" name = "shared"
version = "0.1.0" version = "0.1.0"
rust-version = "1.60"
edition = "2021" edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -2,7 +2,6 @@
name = "zero-copy" name = "zero-copy"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]

View File

@ -2,7 +2,6 @@
name = "zero-cpi" name = "zero-cpi"
version = "0.1.0" version = "0.1.0"
description = "Created with Anchor" description = "Created with Anchor"
rust-version = "1.60"
edition = "2021" edition = "2021"
[lib] [lib]