r/siacoin • • 3h ago

Sia Storage SDK (Go) v0.3.0 release

4 Upvotes

Sia Storage SDK (Go) v0.3.0 gives programs finer control over storage operations and their results. SDK.ObjectEventSummaries lists events without returning slab details. In-flight transfers respond to context.Context cancellation, and distinct failures such as ErrNotEnoughShards and ErrNoMoreHosts work with errors.Is. Dedicated helpers also support pre-authorized keys.

This is not a drop-in upgrade from v0.2.1. Existing integrations require source changes because storage operations now use the Rust engine through cgo. Builds require CGO_ENABLED=1 and a working C compiler and linker. Shipped archives support Darwin on AMD64 and ARM64, Linux on AMD64 and ARM64, and Windows on AMD64 and ARM64; musl-based Linux deployments need a custom compatible archive.

The native integration is safer across builds and copied values. Copies of Object, SDK, Builder, SharedSDK, SharingKey, Download, PackedUpload, and MockNetwork now share ownership of one native handle, preventing dangling handles and double frees. The archives also no longer contain LLVM bitcode that Go rejects during import.

Visit the developer portal at https://devs.sia.storage.