Skip to content

Commit 9a22d5c

Browse files
authored
refactor: re-exporting anchor-lang (#114)
1 parent 2420d0e commit 9a22d5c

File tree

18 files changed

+31
-40
lines changed

18 files changed

+31
-40
lines changed

Cargo.lock

Lines changed: 0 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anchor_lang::prelude::*;
1+
use bolt_lang::prelude::*;
22

33
#[constant]
4-
pub const SEED: &str = "anchor";
4+
pub const SEED: &str = "bolt";

crates/bolt-cli/src/templates/program/error.rs.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anchor_lang::prelude::*;
1+
use bolt_lang::prelude::*;
22

33
#[error_code]
44
pub enum ErrorCode {

crates/bolt-cli/src/templates/program/instructions/initialize.rs.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anchor_lang::prelude::*;
1+
use bolt_lang::prelude::*;
22

33
#[derive(Accounts)]
44
pub struct Initialize {}

crates/bolt-cli/src/templates/program/multiple.lib.rs.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ pub mod error;
33
pub mod instructions;
44
pub mod state;
55

6-
use anchor_lang::prelude::*;
6+
use bolt_lang::prelude::*;
77

88
pub use constants::*;
99
pub use instructions::*;

crates/bolt-cli/src/templates/program/single.lib.rs.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use anchor_lang::prelude::*;
1+
use bolt_lang::prelude::*;
22

33
declare_id!("{program_id}");
44

crates/bolt-cli/src/templates/workspace/Cargo.serde.toml.template

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ no-idl = []
1414
no-log-ix-name = []
1515
cpi = ["no-entrypoint"]
1616
default = []
17-
idl-build = ["anchor-lang/idl-build"]
18-
anchor-debug = ["anchor-lang/anchor-debug"]
17+
idl-build = ["bolt-lang/idl-build"]
18+
anchor-debug = ["bolt-lang/anchor-debug"]
1919
custom-heap = []
2020
custom-panic = []
2121

2222

2323
[dependencies]
2424
bolt-lang.workspace = true
25-
anchor-lang.workspace = true
26-
serde = {{ version = "1.0", features = ["derive"] }}
25+
serde = {{ version = "1.0", features = ["derive"] }}

crates/bolt-cli/src/templates/workspace/Cargo.toml.template

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ no-idl = []
1414
no-log-ix-name = []
1515
cpi = ["no-entrypoint"]
1616
default = []
17-
idl-build = ["anchor-lang/idl-build"]
18-
anchor-debug = ["anchor-lang/anchor-debug"]
17+
idl-build = ["bolt-lang/idl-build"]
18+
anchor-debug = ["bolt-lang/anchor-debug"]
1919
custom-heap = []
2020
custom-panic = []
2121

2222
[dependencies]
2323
bolt-lang.workspace = true
24-
anchor-lang.workspace = true

crates/bolt-cli/src/templates/workspace/mod.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
11
use crate::VERSION;
22
use heck::ToSnakeCase;
3-
pub const ANCHOR_VERSION: &str = anchor_cli::VERSION;
43

54
pub fn workspace_manifest() -> String {
6-
format!(
7-
include_str!("workspace.toml.template"),
8-
VERSION = VERSION,
9-
ANCHOR_VERSION = ANCHOR_VERSION
10-
)
5+
format!(include_str!("workspace.toml.template"), VERSION = VERSION)
116
}
127

138
pub fn package_json(jest: bool) -> String {

crates/bolt-cli/src/templates/workspace/workspace.toml.template

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ resolver = "2"
88

99
[workspace.dependencies]
1010
bolt-lang = "{VERSION}"
11-
anchor-lang = "{ANCHOR_VERSION}"
1211

1312
[profile.release]
1413
overflow-checks = true

0 commit comments

Comments
 (0)