Skip to main content

is_published

Function is_published 

Source
pub fn is_published(package: &str) -> bool
Expand description

Returns true if package ships a per-package crate on crates.io.

Use this in build scripts that want to fail loudly when codegen targets a namespace whose package is git-only (and therefore not reachable from crates.io-mirrored environments). Driven by tools/published.toml.