Publishing a Crate to Crates.io

When your library or tool is ready, you can publish it to crates.io so others can depend on it. Oxide uses Cargo for publishing, just like Rust.

Prepare Your Metadata

Ensure your Cargo.toml has the required fields:

[package]
name = "ox-utils"
version = "0.1.0"
edition = "2021"
description = "Utilities written in Oxide"
license = "MIT OR Apache-2.0"

Add a README.md, include a license file if needed, and verify that tests pass.

Log In and Publish

cargo login
cargo publish

Cargo will upload your crate. If you need to fix a mistake without breaking existing users, you can yank a version:

cargo yank --version 0.1.0

Yanking prevents new downloads of that version while preserving existing dependencies.