Skip to content

Commit f74ea64

Browse files
idl: Rename crate name to anchor-lang-idl (#2908)
1 parent 257b560 commit f74ea64

File tree

19 files changed

+36
-36
lines changed

19 files changed

+36
-36
lines changed

Cargo.lock

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ dev = []
1717

1818
[dependencies]
1919
anchor-client = { path = "../client", version = "0.29.0" }
20-
anchor-idl = { path = "../idl", features = ["build"], version = "0.1.0" }
20+
anchor-lang-idl = { path = "../idl", features = ["build"], version = "0.1.0" }
2121
anchor-lang = { path = "../lang", version = "0.29.0" }
2222
anyhow = "1.0.32"
2323
base64 = "0.21"

cli/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use crate::is_hidden;
22
use anchor_client::Cluster;
3-
use anchor_idl::types::Idl;
3+
use anchor_lang_idl::types::Idl;
44
use anyhow::{anyhow, bail, Context, Error, Result};
55
use clap::{Parser, ValueEnum};
66
use dirs::home_dir;

cli/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ use crate::config::{
66
DEFAULT_LEDGER_PATH, SHUTDOWN_WAIT, STARTUP_WAIT,
77
};
88
use anchor_client::Cluster;
9-
use anchor_idl::types::{Idl, IdlArrayLen, IdlDefinedFields, IdlType, IdlTypeDefTy};
109
use anchor_lang::idl::{IdlAccount, IdlInstruction, ERASED_AUTHORITY};
1110
use anchor_lang::{AccountDeserialize, AnchorDeserialize, AnchorSerialize};
11+
use anchor_lang_idl::types::{Idl, IdlArrayLen, IdlDefinedFields, IdlType, IdlTypeDefTy};
1212
use anyhow::{anyhow, Context, Result};
1313
use checks::{check_anchor_version, check_overflow};
1414
use clap::Parser;
@@ -2609,7 +2609,7 @@ fn idl_build(
26092609
.path
26102610
}
26112611
};
2612-
let idl = anchor_idl::build::build_idl(
2612+
let idl = anchor_lang_idl::build::build_idl(
26132613
program_path,
26142614
cfg.features.resolution,
26152615
cfg.features.skip_lint || skip_lint,
@@ -2655,7 +2655,7 @@ in `{path}`."#
26552655
));
26562656
}
26572657

2658-
anchor_idl::build::build_idl(
2658+
anchor_lang_idl::build::build_idl(
26592659
std::env::current_dir()?,
26602660
cfg.features.resolution,
26612661
cfg.features.skip_lint || skip_lint,

cli/src/rust_template.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use crate::{
22
config::ProgramWorkspace, create_files, override_or_create_files, solidity_template, Files,
33
VERSION,
44
};
5-
use anchor_idl::types::Idl;
5+
use anchor_lang_idl::types::Idl;
66
use anyhow::Result;
77
use clap::{Parser, ValueEnum};
88
use heck::{ToLowerCamelCase, ToPascalCase, ToSnakeCase};

idl/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "anchor-idl"
2+
name = "anchor-lang-idl"
33
version = "0.1.0"
44
authors = ["Anchor Maintainers <accounts@200ms.io>"]
55
repository = "https://github.com/coral-xyz/anchor"

lang/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ idl-build = [
3333
"anchor-attribute-program/idl-build",
3434
"anchor-derive-accounts/idl-build",
3535
"anchor-derive-serde/idl-build",
36-
"anchor-idl/build",
36+
"anchor-lang-idl/build",
3737
]
3838
init-if-needed = ["anchor-derive-accounts/init-if-needed"]
3939
interface-instructions = ["anchor-attribute-program/interface-instructions"]
@@ -49,8 +49,8 @@ anchor-derive-accounts = { path = "./derive/accounts", version = "0.29.0" }
4949
anchor-derive-serde = { path = "./derive/serde", version = "0.29.0" }
5050
anchor-derive-space = { path = "./derive/space", version = "0.29.0" }
5151

52-
# `anchor-idl` should only be included with `idl-build` feature
53-
anchor-idl = { path = "../idl", version = "0.1.0", optional = true }
52+
# `anchor-lang-idl` should only be included with `idl-build` feature
53+
anchor-lang-idl = { path = "../idl", version = "0.1.0", optional = true }
5454

5555
arrayref = "0.3"
5656
base64 = "0.21"

lang/attribute/program/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ idl-build = ["anchor-syn/idl-build"]
1717
interface-instructions = ["anchor-syn/interface-instructions"]
1818

1919
[dependencies]
20-
anchor-idl = { path = "../../../idl", version = "0.1.0" }
20+
anchor-lang-idl = { path = "../../../idl", version = "0.1.0" }
2121
anchor-syn = { path = "../../syn", version = "0.29.0" }
2222
anyhow = "1"
2323
bs58 = "0.5"

lang/attribute/program/src/declare_program/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anchor_idl::types::{
1+
use anchor_lang_idl::types::{
22
Idl, IdlArrayLen, IdlDefinedFields, IdlField, IdlGenericArg, IdlRepr, IdlSerialization,
33
IdlType, IdlTypeDef, IdlTypeDefGeneric, IdlTypeDefTy,
44
};

lang/attribute/program/src/declare_program/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod common;
22
mod mods;
33

4-
use anchor_idl::types::Idl;
4+
use anchor_lang_idl::types::Idl;
55
use anyhow::anyhow;
66
use quote::{quote, ToTokens};
77
use syn::parse::{Parse, ParseStream};

0 commit comments

Comments
 (0)