Skip to content

cross-rs/test-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-workspace

Minimal example of cargo workspaces

Run anywhere inside the workspace directory:

cross run -p binary

This should also work from the root directory:

cross run --manifest-path ./workspace/Cargo.toml -p binary

Specification

This aims to replicate most of the features present in the reference documentation.

AKA, we support:

  • globs
  • excludes

The glob syntax is described in detail here.

In short:

  • ?: any single character.
  • *: 0 or more characters.
  • **: current directory and recursive subdirectories.
    • **b and a** are both invalid: it must be just **
  • [...]: matches character in the set, such as [0-9]
  • [!...]: matches character not in the set, such as [!0-9]

These syntaxes don't apply on top of each other, like more sophisticated regular expressions: they are simply globs. For example, [0-9]? matches 1f, but not 1.

Adding in a non-glob member, such as "." for the root overrides all exclude patterns. For example, having a workspace like the following will ignore the exclude filter.

[workspace]
members = ["folder", "folder/*"]
exclude = ["folder/lib1"]

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Minimal example of a cargo workspace

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Languages