Skip to content

Commit

Permalink
Remove rust-version from crate manifests (#3000)
Browse files Browse the repository at this point in the history
  • Loading branch information
acheroncrypto authored May 31, 2024
1 parent 5601702 commit efe2e40
Show file tree
Hide file tree
Showing 64 changed files with 3 additions and 69 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)).
- 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)).
- Remove `rust-version` from crate manifests ([#3000](https://github.com/coral-xyz/anchor/pull/3000)).

### Breaking

Expand Down
1 change: 0 additions & 1 deletion avm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "avm"
version = "0.30.0"
rust-version = "1.60"
edition = "2021"

[[bin]]
Expand Down
1 change: 0 additions & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "anchor-client"
version = "0.30.0"
authors = ["Anchor Maintainers <[email protected]>"]
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "An RPC client to interact with Anchor programs"
Expand Down
1 change: 0 additions & 1 deletion client/example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "example"
version = "0.1.0"
authors = ["Armani Ferrante <[email protected]>"]
rust-version = "1.60"
edition = "2021"

[workspace]
Expand Down
9 changes: 2 additions & 7 deletions client/src/cluster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,17 @@ use serde::{Deserialize, Serialize};
use std::str::FromStr;
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 {
Testnet,
Mainnet,
Devnet,
#[default]
Localnet,
Debug,
Custom(String, String),
}

impl Default for Cluster {
fn default() -> Self {
Cluster::Localnet
}
}

impl FromStr for Cluster {
type Err = anyhow::Error;
fn from_str(s: &str) -> Result<Cluster> {
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-0/programs/basic-0/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "basic-0"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-1/programs/basic-1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "basic-1"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-2/programs/basic-2/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "basic-2"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "puppet-master"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-3/programs/puppet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "puppet"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-4/programs/basic-4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "basic-4"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion examples/tutorial/basic-5/programs/basic-5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "basic-5"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion idl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "anchor-lang-idl"
version = "0.1.0"
authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "Anchor framework IDL"
Expand Down
1 change: 0 additions & 1 deletion lang/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name = "anchor-lang"
version = "0.30.0"
authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "Solana Sealevel eDSL"
Expand Down
1 change: 0 additions & 1 deletion lang/attribute/access-control/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for instruction access control"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/attribute/account/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for defining an account"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/attribute/constant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for creating constant types"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/attribute/error/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for creating error types"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/attribute/program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor attribute macro for defining a program"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/derive/accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor Derive macro for accounts"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/derive/serde/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor Derive macro for serialization and deserialization"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/derive/space/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor Derive macro to automatically calculate the size of a structure or an enum"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion lang/syn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ authors = ["Anchor Maintainers <[email protected]>"]
repository = "https://github.com/coral-xyz/anchor"
license = "Apache-2.0"
description = "Anchor syntax parsing and code generation tools"
rust-version = "1.60"
edition = "2021"

[package.metadata.docs.rs]
Expand Down
1 change: 0 additions & 1 deletion spl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "anchor-spl"
version = "0.30.0"
authors = ["Anchor Maintainers <[email protected]>"]
rust-version = "1.60"
edition = "2021"
license = "Apache-2.0"
description = "CPI clients for SPL programs"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "bpf-upgradeable-state"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/cashiers-check/programs/cashiers-check/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "cashiers-check"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/cfo/programs/cfo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "cfo"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/chat/programs/chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "chat"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/composite/programs/composite/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "composite"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/custom-coder/programs/native-system/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "native-system"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/custom-coder/programs/spl-token/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "spl-token"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/declare-program/programs/declare-program/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "declare-program"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/declare-program/programs/external/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "external"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/errors/programs/errors/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "errors"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/escrow/programs/escrow/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "escrow"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/events/programs/events/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "events"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/idl/programs/docs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "docs"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/idl/programs/new-idl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "new-idl"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/idl/programs/relations-derivation/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "relations-derivation"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/ido-pool/programs/ido-pool/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "ido-pool"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/lockup/programs/lockup/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "lockup"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/lockup/programs/registry/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "registry"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/misc/programs/misc-optional/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "misc-optional"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.56"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/misc/programs/misc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "misc"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/misc/programs/remaining-accounts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "remaining-accounts"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
1 change: 0 additions & 1 deletion tests/misc/programs/shared/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[package]
name = "shared"
version = "0.1.0"
rust-version = "1.60"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
1 change: 0 additions & 1 deletion tests/multisig/programs/multisig/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
name = "multisig"
version = "0.1.0"
description = "Created with Anchor"
rust-version = "1.60"
edition = "2021"

[lib]
Expand Down
Loading

0 comments on commit efe2e40

Please sign in to comment.