Skip to content
Beskid The Beskid Book

Beskid

Jump to a Beskid service

Beskid

Jump to a Beskid service

19.1 pub boundaries

Keep most symbols private; export only what you intend to support.

pub boundaries

Default to private. Export with pub only when another compilation unit—or a human on the registry—should depend on the symbol.

  • Keep most items private by default.
  • Export stable contracts with pub.
  • Re-export selected symbols from boundary modules with pub use.

This combines a C#-like focus on explicit public surface with Rust-like module tree composition.

net/mod.bd
mod http;
pub use http.Client;

Consumers import net.Client, while internal layout remains free to evolve.