use-go-work 0.0.1

go.work workspace metadata primitives for RustUse
Documentation
  • Coverage
  • 62.5%
    20 out of 32 items documented1 out of 20 items with examples
  • Size
  • Source code size: 12.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 862.9 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s 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-work

go.work workspace metadata primitives for RustUse.

Experimental

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

Example

use use_go_work::{GoWorkDirective, GoWorkFile, GoWorkModulePath, GoWorkUseDirective};

let module = GoWorkModulePath::new("./app")?;
let file = GoWorkFile::new().with_directive(GoWorkDirective::Use(GoWorkUseDirective::new(module)));

assert_eq!(file.directives().len(), 1);
# Ok::<(), use_go_work::GoWorkError>(())

Scope

  • go.work config file and directive metadata.
  • Workspace module path metadata.
  • Workspace layout labels.

Non-goals

  • Complete go.work parsing.
  • Workspace or module resolution.
  • Shelling out to go work.
  • Generating Go workspaces.

License

Licensed under either Apache-2.0 or MIT.