Repository navigation
Puddi v0.1.0
First release of Puddi and its pud toolchain, implementing the draft 0.1 language specification.
Language
- Structs, enums, tuples, generics with bounds, traits with default methods, associated types and supertraits,
dyn Trait, operator traits and closures - Pattern matching with exhaustiveness checking,
if let,while letandlet ... else ?withFromconversion, theErrortrait andAnyErr@derive(Eq, Ord, Hash, Show, Transfer), constants, type aliases, modules and importsasync fnand.await,task.scopewith structured cancellation, and workers- WIT imports,
export fn,@externand@export,@target,@deprecatedandtestblocks
Toolchain
pud new,build,run,test,check,fmt,docandaddbrowser,wasi(WASI 0.3) andplugintargets, all emitted as WebAssembly components on WasmGC- An embedded Wasmtime runtime for
pud run - Git dependencies with minimal version selection and
pud.lock, plus local path dependencies
Testing and distribution
- A conformance suite in
conformance/with cases for every normative section of SPEC.md - CI on Linux, macOS and Windows
- Prebuilt binaries for Linux (x86_64, arm64), macOS (x86_64, arm64) and Windows (x86_64), with install scripts for each
Known gaps
The conformance suite marks these differences from the spec as expected failures:
- no warnings for naming-convention violations, and struct literals need an uppercase type name (2.4)
- a float literal next to an unsigned integer does not default to
Float(3.7) Self.Itemdoes not resolve inside an impl block, and a duplicate impl is accepted (3.12)- unannotated closure parameters are not inferred from the body or later calls (4.6)
- plugin exports that use WIT records, variants, enums or flags fail to compile (8.3)