Skip to content

Creating Packages

Package Structure

my-package/
├── wyn.toml
├── src/
│   └── lib.wyn
└── tests/
    └── test_lib.wyn

wyn.toml

toml
[package]
name = "my-package"
version = "0.1.0"
description = "My Wyn package"

Publishing

sh
wyn pkg push

Your package needs a wyn.toml with a [package] section:

toml
[package]
name = "my-package"
version = "0.1.0"
description = "My Wyn package"
license = "MIT"

Before publishing, register and log in:

sh
wyn pkg register    # Create account
wyn pkg login       # Save API key
wyn pkg push        # Publish

MIT License