Skip to content

Commit 7b108db

Browse files
authored
chore: updated docs changelog and release notes for v1 (solana-foundation#4360)
* chore: updated docs changelog and release notes for v1 * fix typo * review fixes * updated more doc files. changes after review * added missing changes to docs and updated old reference links * missing link changes, updated 0.32.1 references to 1.0.0 * additional relevant changes in the release notes * fixed errors example. added line break for consistency * updated changelog and release date * fix order on changelog.mdx, adding missing entry, removing dup entry from changelog.md
1 parent 76e8a97 commit 7b108db

25 files changed

+853
-148
lines changed

CHANGELOG.md

Lines changed: 10 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,6 @@ The minor version will be incremented upon a breaking change and the patch versi
2020

2121
### Features
2222

23-
### Fixes
24-
25-
- client: Fix deadlock when having multiple websocket listeners ([#4250](https://github.com/solana-foundation/anchor/pull/4250)).
26-
27-
### Breaking
28-
29-
- lang: Rename `errors` and `ProgramError` of `declare_program!` ([#4347](https://github.com/solana-foundation/anchor/pull/4347)).
30-
- client: Remove the `solana-account-decoder` crate export ([#4373](https://github.com/solana-foundation/anchor/pull/4373)).
31-
32-
## [1.0.0-rc.5] - 2026-03-20
33-
34-
### Features
35-
36-
- lang, cli, client: Updated solana dependencies to the latest compatible versions. Bumping CI and docker builds to use Solana CLI version 3.1.10 ([#4317](https://github.com/solana-foundation/anchor/pull/4317/))
37-
38-
### Fixes
39-
40-
- lang: Fix incorrect deserialization for dynamically sized types when using `lazy-account` ([#4319](https://github.com/solana-foundation/anchor/pull/4319))
41-
- avm: Using a temporary installation dir on cargo install calls to prevent cargo erroring out due to existing `anchor` symlink in `.avm/bin` ([4343](https://github.com/solana-foundation/anchor/pull/4343))
42-
43-
### Breaking
44-
45-
## [1.0.0-rc.4] - 2026-03-19
46-
47-
### Features
48-
49-
- avm: Added flags and version labels to explicitly handle pre-releases (`avm list --pre-release`, `avm update --pre-release` and `avm install latest-pre-release`). ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
50-
- avm: Added `avm self-update` command and passive version check warning for out of date avm ([#4338](https://github.com/solana-foundation/anchor/pull/4338))
51-
52-
### Fixes
53-
54-
- avm: Fixed handling of new Cargo.toml version location. Fixed handling of pre-release version parsing. ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
55-
56-
### Breaking
57-
58-
## [1.0.0-rc.3] - 2026-03-18
59-
60-
### Features
61-
6223
- lang: Add `Migration<'info, From, To>` account type for schema migrations between account types ([#4060](https://github.com/solana-foundation/anchor/pull/4060)).
6324
- cli: Added a `check_program_id_mismatch` in build time to check if the program ID in the source code matches the program ID in the keypair file ([#4018](https://github.com/solana-foundation/anchor/pull/4018)). This check will be skipped during `anchor test`.
6425
- lang: Add instruction parser to `declare_program!` ([#4118](https://github.com/solana-foundation/anchor/pull/4118)).
@@ -81,6 +42,9 @@ The minor version will be incremented upon a breaking change and the patch versi
8142
- lang: Add generic program validation support to `Program` type allowing `Program<'info>` for executable-only validation ([#3878](https://github.com/solana-foundation/anchor/pull/3878)).
8243
- cli: Added `litesvm` test template and made it the default option on `anchor init` ([#4316](https://github.com/solana-foundation/anchor/pull/4316))
8344
- cli: Added `--install-agent-skills` to automatically install Solana agent skills during `anchor init` ([#4307](https://github.com/solana-foundation/anchor/pull/4307))
45+
- avm: Added flags and version labels to explicitly handle pre-releases (`avm list --pre-release`, `avm update --pre-release` and `avm install latest-pre-release`). ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
46+
- avm: Added `avm self-update` command and passive version check warning for out of date avm ([#4338](https://github.com/solana-foundation/anchor/pull/4338))
47+
- lang, cli, client: Updated solana dependencies to the latest compatible versions. Bumping CI and docker builds to use Solana CLI version 3.1.10 ([#4317](https://github.com/solana-foundation/anchor/pull/4317/))
8448

8549
### Fixes
8650

@@ -105,6 +69,10 @@ The minor version will be incremented upon a breaking change and the patch versi
10569
- ts: Fix incorrect Anchor dependency version requirements ([#4138](https://github.com/solana-foundation/anchor/pull/4138)).
10670
- lang: Omit `parsers` module of `declare_program!` during on-chain (Solana) builds ([#4109](https://github.com/solana-foundation/anchor/pull/4109)).
10771
- docs: Fixed broken links and replaced coral-xyz github references to solana-foundation ([#4320](https://github.com/solana-foundation/anchor/pull/4320))
72+
- avm: Fixed handling of new Cargo.toml version location. Fixed handling of pre-release version parsing. ([#4335](https://github.com/solana-foundation/anchor/pull/4335))
73+
- client: Fix deadlock when having multiple websocket listeners ([#4250](https://github.com/solana-foundation/anchor/pull/4250)).
74+
- lang: Fix incorrect deserialization for dynamically sized types when using `lazy-account` ([#4319](https://github.com/solana-foundation/anchor/pull/4319))
75+
- avm: Using a temporary installation dir on cargo install calls to prevent cargo erroring out due to existing `anchor` symlink in `.avm/bin` ([4343](https://github.com/solana-foundation/anchor/pull/4343))
10876

10977
### Breaking
11078

@@ -118,13 +86,14 @@ The minor version will be incremented upon a breaking change and the patch versi
11886
- idl: Remove the conflicting account names check ([#4294](https://github.com/solana-foundation/anchor/pull/4294)).
11987
- deps: Update to Solana 3.0 ([#4031](https://github.com/solana-foundation/anchor/pull/4031)).
12088
- idl: Remove legacy IDL instructions and integrate Program Metadata for IDL management ([#3798](https://github.com/solana-foundation/anchor/pull/3798)).
121-
- ts: Rename TypeScript packages from `@coral-xyz/anchor` to `@anchor-lang/anchor` ([#4141](https://github.com/solana-foundation/anchor/pull/4141)).
89+
- ts: Rename TypeScript packages from `@coral-xyz/anchor` to `@anchor-lang/core` ([#4141](https://github.com/solana-foundation/anchor/pull/4141)).
12290
- lang: Remove program account info from CPI context ([#2762](https://github.com/solana-foundation/anchor/pull/2762)).
12391
- cli: Remove dependency on the external `solana` CLI; native implementations provided for balance, airdrop, address, deploy, and other commands ([#4099](https://github.com/solana-foundation/anchor/pull/4099)).
12492
- idl: Disallow multiple `#[error_code]` definitions in a single program ([#4300](https://github.com/solana-foundation/anchor/pull/4300)).
12593
- cli: Remove the `[registry]` section from `Anchor.toml` ([#4299](https://github.com/solana-foundation/anchor/pull/4299)).
12694
- client: Make sending a tx not panic and instead return an Error when signing fails ([#3865](https://github.com/solana-foundation/anchor/pull/3865)).
127-
- idl: Disallow multiple error definitions ([#4300](https://github.com/solana-foundation/anchor/pull/4300)).
95+
- lang: Rename `errors` and `ProgramError` of `declare_program!` ([#4347](https://github.com/solana-foundation/anchor/pull/4347)).
96+
- client: Remove the `solana-account-decoder` crate export ([#4373](https://github.com/solana-foundation/anchor/pull/4373)).
12897

12998
## [0.32.1] - 2025-10-09
13099

docs/content/docs/basics/cpi.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ The `sol_transfer` instruction included in the example code shows a typical
142142
approach for constructing CPIs using the Anchor framework.
143143

144144
This approach involves creating a
145-
[`CpiContext`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/context.rs#L171),
145+
[`CpiContext`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/context.rs#L173),
146146
which includes the `program_id` and accounts required for the instruction being
147147
called. The `CpiContext` is then passed to an Anchor helper function
148-
([`transfer`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/system_program.rs#L298))
148+
([`transfer`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/system_program.rs#L298))
149149
to invoke a specific instruction.
150150

151151
```rust
@@ -472,7 +472,7 @@ The `sol_transfer` instruction included in the example code shows a typical
472472
approach for constructing CPIs using the Anchor framework.
473473

474474
This approach involves creating a
475-
[`CpiContext`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/context.rs#L171),
475+
[`CpiContext`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/context.rs#L173),
476476
which includes the `program_id` and accounts required for the instruction being
477477
called, followed by a helper function (`transfer`) to invoke a specific
478478
instruction.

docs/content/docs/basics/idl.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ ed = 237
428428

429429
You can find the implementation of the discriminator generation in the Anchor
430430
codebase
431-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/program/common.rs#L5-L19),
432-
for the [`gen_discriminator` method here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/program/common.rs#L21-L24),
431+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/program/common.rs#L5-L22),
432+
for the [`gen_discriminator` method here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/program/common.rs#L19-L22),
433433
which is used
434-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/program/instruction.rs#L33).
434+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/program/instruction.rs#L33).
435435

436436
</Tab>
437437
<Tab value="Accounts">
@@ -480,7 +480,7 @@ e8 = 232
480480

481481
You can find the implementation of the discriminator generation in the Anchor
482482
codebase
483-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L101-L117).
483+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L113-L125).
484484

485485
<Callout type="info">
486486
Note that different programs using identical account names will generate the

docs/content/docs/basics/program-structure.mdx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ pub struct NewAccount {
6161
## declare_id! macro
6262

6363
The
64-
[`declare_id`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L537)
64+
[`declare_id`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L539)
6565
macro specifies the on-chain address of the program, known as the program ID.
6666
You can find the implementation of the code generated by the `declare_id!` macro
67-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/id.rs#L37-L70).
67+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/id.rs#L54-L83).
6868

6969
```rust title="lib.rs"
7070
use anchor_lang::prelude::*;
@@ -91,14 +91,14 @@ the one generated when you run `anchor build` locally.
9191
## #[program] attribute
9292

9393
The
94-
[`#[program]`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/program/src/lib.rs#L12)
94+
[`#[program]`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/program/src/lib.rs#L10)
9595
attribute annotates the module containing all the instruction handlers for your
9696
program. Each public function within this module corresponds to an instruction
9797
that can be invoked.
9898

9999
You can find the implementation of the code generated by the `#[program]`
100100
attribute
101-
[here](https://github.com/solana-foundation/anchor/tree/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/program).
101+
[here](https://github.com/solana-foundation/anchor/tree/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/program).
102102

103103
```rust title="lib.rs"
104104
use anchor_lang::prelude::*;
@@ -137,11 +137,11 @@ pub struct NewAccount {
137137
Instruction handlers are functions that define the logic executed when an
138138
instruction is invoked. The first parameter of each handler is a `Context<T>`
139139
type, where `T` is a struct implementing the
140-
[`Accounts`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/lib.rs#L108)
140+
[`Accounts`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/lib.rs#L194)
141141
trait and specifies the accounts the instruction requires.
142142

143143
The
144-
[`Context`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/context.rs#L24)
144+
[`Context`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/context.rs#L26)
145145
type provides the instruction with access to the following non-argument inputs:
146146

147147
```rust
@@ -213,16 +213,16 @@ pub struct Initialize<'info> {
213213
## #[derive(Accounts)] macro
214214

215215
The
216-
[`#[derive(Accounts)]`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/derive/accounts/src/lib.rs#L631)
216+
[`#[derive(Accounts)]`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/derive/accounts/src/lib.rs#L647)
217217
macro is applied to a struct to specify the accounts that must be provided when
218218
an instruction is invoked. This macro implements the
219-
[`Accounts`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/lib.rs#L108)
219+
[`Accounts`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/lib.rs#L194)
220220
trait, which simplifies account validation and serialization and deserialization
221221
of account data.
222222

223223
You can find the implementation of the code generated by the
224224
`#[derive(Accounts)]` macro
225-
[here](https://github.com/solana-foundation/anchor/tree/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/accounts).
225+
[here](https://github.com/solana-foundation/anchor/tree/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/accounts).
226226

227227
```rust
228228
// [!code word:Accounts]
@@ -268,9 +268,9 @@ Anchor programs in two ways that are generally used together:
268268
`Accounts` trait.
269269

270270
You can find a full list of the constraints
271-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/parser/accounts/constraints.rs)
271+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/parser/accounts/constraints.rs)
272272
and implementation
273-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/syn/src/codegen/accounts/constraints.rs).
273+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/syn/src/codegen/accounts/constraints.rs).
274274

275275
```rust
276276
#[derive(Accounts)]
@@ -290,7 +290,7 @@ Anchor programs in two ways that are generally used together:
290290
what the program expects.
291291

292292
You can find the implementation of the account types
293-
[here](https://github.com/solana-foundation/anchor/tree/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/src/accounts).
293+
[here](https://github.com/solana-foundation/anchor/tree/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/src/accounts).
294294

295295
```rust
296296
#[derive(Accounts)]
@@ -346,7 +346,7 @@ pub struct NewAccount {
346346
## #[account] attribute
347347

348348
The
349-
[`#[account]`](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L97)
349+
[`#[account]`](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L99)
350350
attribute is applied to structs that define the structure of the data stored in
351351
custom accounts created by your program.
352352

@@ -362,14 +362,14 @@ This macro implements various traits
362362
[detailed here](https://docs.rs/anchor-lang/latest/anchor_lang/attr.account.html).
363363
The key functionalities of the `#[account]` macro include:
364364

365-
- [Assign Program Owner](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L130-L143):
365+
- [Assign Program Owner](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L132-L145):
366366
When creating an account, the program owner of the account is automatically
367367
set to the program specified in `declare_id`.
368-
- [Set Discriminator](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L111-L128):
368+
- [Set Discriminator](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L113-L130):
369369
A unique 8 byte discriminator, specific to the account type, is added as the
370370
first 8 bytes of account data during its initialization. This helps in
371371
differentiating account types and is used for account validation.
372-
- [Data Serialization and Deserialization](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L224-L270):
372+
- [Data Serialization and Deserialization](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L226-L272):
373373
Account data is automatically serialized and deserialized as the account type.
374374

375375
```rust title="lib.rs"
@@ -411,7 +411,7 @@ pub struct NewAccount {
411411
An account discriminator in an Anchor program refers to an 8 byte identifier
412412
unique to each account type. You can find the implementation of the account
413413
discriminator
414-
[here](https://github.com/solana-foundation/anchor/blob/0e5285aecdf410fa0779b7cd09a47f235882c156/lang/attribute/account/src/lib.rs#L111-L128).
414+
[here](https://github.com/solana-foundation/anchor/blob/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/lang/attribute/account/src/lib.rs#L113-L130).
415415

416416
The discriminator is the first 8 bytes of the SHA256 hash of the string
417417
`account:<AccountName>`. This discriminator is stored as the first 8 bytes of

docs/content/docs/clients/rust.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description:
66

77
The [`anchor-client`](https://docs.rs/anchor-client/latest/anchor_client/) crate
88
is the Rust client library for interacting with Anchor programs. You can find
9-
the source code [here](https://github.com/solana-foundation/anchor/tree/0e5285aecdf410fa0779b7cd09a47f235882c156/client).
9+
the source code [here](https://github.com/solana-foundation/anchor/tree/62865c636aecc6974fc9cfebfc6cf08ca4f0bb72/client).
1010

1111
## Example
1212

0 commit comments

Comments
 (0)