Skip to content

Commit 83a9637

Browse files
committed
drop anchor
1 parent 6a18868 commit 83a9637

File tree

9 files changed

+12
-36
lines changed

9 files changed

+12
-36
lines changed

clients/rust/src/generated/accounts/address_lookup_table.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,3 @@ impl<'a> TryFrom<&solana_program::account_info::AccountInfo<'a>> for AddressLook
6262
Self::deserialize(&mut data)
6363
}
6464
}
65-
66-
#[cfg(feature = "anchor")]
67-
impl anchor_lang::AccountDeserialize for AddressLookupTable {
68-
fn try_deserialize_unchecked(buf: &mut &[u8]) -> anchor_lang::Result<Self> {
69-
Ok(Self::deserialize(buf)?)
70-
}
71-
}
72-
73-
#[cfg(feature = "anchor")]
74-
impl anchor_lang::AccountSerialize for AddressLookupTable {}
75-
76-
#[cfg(feature = "anchor")]
77-
impl anchor_lang::Owner for AddressLookupTable {
78-
fn owner() -> Pubkey {
79-
crate::ADDRESS_LOOKUP_TABLE_ID
80-
}
81-
}
82-
83-
#[cfg(feature = "anchor-idl-build")]
84-
impl anchor_lang::IdlBuild for AddressLookupTable {}
85-
86-
#[cfg(feature = "anchor-idl-build")]
87-
impl anchor_lang::Discriminator for AddressLookupTable {
88-
const DISCRIMINATOR: [u8; 8] = [0; 8];
89-
}

clients/rust/src/generated/instructions/close_lookup_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ impl<'a, 'b> CloseLookupTableCpi<'a, 'b> {
222222
accounts,
223223
data,
224224
};
225-
let mut account_infos = Vec::with_capacity(3 + 1 + remaining_accounts.len());
225+
let mut account_infos = Vec::with_capacity(4 + remaining_accounts.len());
226226
account_infos.push(self.__program.clone());
227227
account_infos.push(self.address.clone());
228228
account_infos.push(self.authority.clone());

clients/rust/src/generated/instructions/create_lookup_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ impl<'a, 'b> CreateLookupTableCpi<'a, 'b> {
287287
accounts,
288288
data,
289289
};
290-
let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len());
290+
let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len());
291291
account_infos.push(self.__program.clone());
292292
account_infos.push(self.address.clone());
293293
account_infos.push(self.authority.clone());

clients/rust/src/generated/instructions/deactivate_lookup_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<'a, 'b> DeactivateLookupTableCpi<'a, 'b> {
203203
accounts,
204204
data,
205205
};
206-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
206+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
207207
account_infos.push(self.__program.clone());
208208
account_infos.push(self.address.clone());
209209
account_infos.push(self.authority.clone());

clients/rust/src/generated/instructions/extend_lookup_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ impl<'a, 'b> ExtendLookupTableCpi<'a, 'b> {
283283
accounts,
284284
data,
285285
};
286-
let mut account_infos = Vec::with_capacity(4 + 1 + remaining_accounts.len());
286+
let mut account_infos = Vec::with_capacity(5 + remaining_accounts.len());
287287
account_infos.push(self.__program.clone());
288288
account_infos.push(self.address.clone());
289289
account_infos.push(self.authority.clone());

clients/rust/src/generated/instructions/freeze_lookup_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ impl<'a, 'b> FreezeLookupTableCpi<'a, 'b> {
203203
accounts,
204204
data,
205205
};
206-
let mut account_infos = Vec::with_capacity(2 + 1 + remaining_accounts.len());
206+
let mut account_infos = Vec::with_capacity(3 + remaining_accounts.len());
207207
account_infos.push(self.__program.clone());
208208
account_infos.push(self.address.clone());
209209
account_infos.push(self.authority.clone());

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"devDependencies": {
2727
"@codama/renderers-js": "^1.0.0",
28-
"@codama/renderers-rust": "^1.0.0",
28+
"@codama/renderers-rust": "^1.0.3",
2929
"@iarna/toml": "^2.2.5",
3030
"codama": "^1.0.0",
3131
"typescript": "^5.5.2",

pnpm-lock.yaml

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

scripts/generate-clients.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ codama.accept(
2222
const rustClient = path.join(__dirname, '..', 'clients', 'rust');
2323
codama.accept(
2424
renderRustVisitor(path.join(rustClient, 'src', 'generated'), {
25+
anchorTraits: false,
2526
formatCode: true,
2627
crateFolder: rustClient,
2728
toolchain: getToolchainArgument('format'),

0 commit comments

Comments
 (0)