use-go-module 0.0.1

Go module path, version, dependency, and replacement primitives for RustUse
Documentation
  • Coverage
  • 69.57%
    32 out of 46 items documented1 out of 32 items with examples
  • Size
  • Source code size: 18.04 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 952.8 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 5s Average build duration of successful builds.
  • all releases: 5s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-go
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-go-module

Go module path, version, dependency, and replacement primitives for RustUse.

Experimental

use-go-module is experimental while use-go remains below 0.3.0.

Example

use use_go_module::{GoModuleDependency, GoModulePath, GoModuleVersion};

let path = GoModulePath::new("example.com/project")?;
let version = GoModuleVersion::new("v1.2.3")?;
let dependency = GoModuleDependency::new(path, version);

assert_eq!(dependency.path().as_str(), "example.com/project");
assert_eq!(dependency.version().as_str(), "v1.2.3");
# Ok::<(), use_go_module::GoModuleError>(())

Scope

  • Lightweight Go module paths and versions.
  • Dependency, requirement, replacement, and directive-kind metadata.
  • Pseudo-version-shaped labels for metadata use.

Non-goals

  • Full semantic import versioning.
  • Module graph resolution.
  • Contacting module proxies or registries.
  • Shelling out to go mod.

License

Licensed under either Apache-2.0 or MIT.