spin-sdk 5.2.0

The Spin Rust SDK makes it easy to build Spin components in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
interface config {
  // Get a configuration value for the current component.
  // The config key must match one defined in in the component manifest.
  get-config: func(key: string) -> result<string, error>;

  variant error {
      provider(string),
      invalid-key(string),
      invalid-schema(string),
      other(string),
  }
}