@@ -34,17 +34,17 @@ You can run the convenience script in this repo to download the compiler to
3434
3535## How to use
3636
37- 1 . Add this package and ` base58-zig ` to your project:
37+ 1 . Add this package to your project:
3838
3939``` console
40- zig fetch --save https://github.com/joncinque/base58-zig/archive/refs/tags/v0.13.3.tar.gz
41- zig fetch --save https://github.com/joncinque/solana-program-sdk-zig/archive/refs/tags/v0.13.1.tar.gz
40+ zig fetch --save https://github.com/joncinque/solana-program-sdk-zig/archive/refs/tags/v0.14.0.tar.gz
4241```
4342
44432 . (Optional) if you want to generate a keypair during building, you'll also
45- need to install clap:
44+ need to install base58 and clap:
4645
4746``` console
47+ zig fetch --save https://github.com/joncinque/base58-zig/archive/refs/tags/v0.13.3.tar.gz
4848zig fetch --save https://github.com/Hejsil/zig-clap/archive/refs/tags/0.9.1.tar.gz
4949```
5050
@@ -62,9 +62,8 @@ pub fn build(b: *std.build.Builder) !void {
6262 // `sbf_target`, and `sbfv2_target`.
6363 // See `build.zig` for more info.
6464 const target = b.resolveTargetQuery(solana.sbf_target);
65- // Choose the optimization. `.ReleaseSmall` gives a good balance of
66- // optimized CU usage and smaller size of compiled binary
67- const optimize = .ReleaseSmall;
65+ // Choose the optimization. `.ReleaseFast` gives optimized CU usage
66+ const optimize = .ReleaseFast;
6867 // Define your program as a shared library
6968 const program = b.addSharedLibrary(.{
7069 .name = "program_name",
@@ -73,8 +72,8 @@ pub fn build(b: *std.build.Builder) !void {
7372 .optimize = optimize,
7473 .target = target,
7574 });
76- // Use the `buildProgram` helper to create the solana-sdk module, add all
77- // of its required dependencies, link the program properly.
75+ // Use the `buildProgram` helper to create the solana-sdk module, and link
76+ // the program properly.
7877 const solana_mod = solana.buildProgram(b, program, target, optimize);
7978
8079 // Install the program artifact
0 commit comments