Ver código fonte

idl: Keep crate and `spec` version the same (#2901)

acheron 1 ano atrás
pai
commit
7356bd5afe
6 arquivos alterados com 6 adições e 6 exclusões
  1. 1 1
      Cargo.lock
  2. 1 1
      cli/Cargo.toml
  3. 1 1
      idl/Cargo.toml
  4. 1 1
      idl/src/types.rs
  5. 1 1
      lang/Cargo.toml
  6. 1 1
      lang/attribute/program/Cargo.toml

+ 1 - 1
Cargo.lock

@@ -265,7 +265,7 @@ dependencies = [
 
 [[package]]
 name = "anchor-idl"
-version = "0.29.0"
+version = "0.1.0"
 dependencies = [
  "anchor-syn",
  "anyhow",

+ 1 - 1
cli/Cargo.toml

@@ -17,7 +17,7 @@ dev = []
 
 [dependencies]
 anchor-client = { path = "../client", version = "0.29.0" }
-anchor-idl = { path = "../idl", features = ["build"], version = "0.29.0" }
+anchor-idl = { path = "../idl", features = ["build"], version = "0.1.0" }
 anchor-lang = { path = "../lang", version = "0.29.0" }
 anyhow = "1.0.32"
 base64 = "0.21"

+ 1 - 1
idl/Cargo.toml

@@ -1,6 +1,6 @@
 [package]
 name = "anchor-idl"
-version = "0.29.0"
+version = "0.1.0"
 authors = ["Anchor Maintainers <accounts@200ms.io>"]
 repository = "https://github.com/coral-xyz/anchor"
 rust-version = "1.60"

+ 1 - 1
idl/src/types.rs

@@ -4,7 +4,7 @@ use anyhow::anyhow;
 use serde::{Deserialize, Serialize};
 
 /// IDL specification Semantic Version
-pub const IDL_SPEC: &str = "0.1.0";
+pub const IDL_SPEC: &str = env!("CARGO_PKG_VERSION");
 
 #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
 pub struct Idl {

+ 1 - 1
lang/Cargo.toml

@@ -50,7 +50,7 @@ anchor-derive-serde = { path = "./derive/serde", version = "0.29.0" }
 anchor-derive-space = { path = "./derive/space", version = "0.29.0" }
 
 # `anchor-idl` should only be included with `idl-build` feature
-anchor-idl = { path = "../idl", version = "0.29.0", optional = true }
+anchor-idl = { path = "../idl", version = "0.1.0", optional = true }
 
 arrayref = "0.3"
 base64 = "0.21"

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

@@ -17,7 +17,7 @@ idl-build = ["anchor-syn/idl-build"]
 interface-instructions = ["anchor-syn/interface-instructions"]
 
 [dependencies]
-anchor-idl = { path = "../../../idl", version = "0.29.0" }
+anchor-idl = { path = "../../../idl", version = "0.1.0" }
 anchor-syn = { path = "../../syn", version = "0.29.0" }
 anyhow = "1"
 bs58 = "0.5"