Comments (5)
Totally agree. If you look in the project tab i already have a task there in the todo column to disable this using cli flag so you can decide when to use it or not.
I think that is best solution.
What do you think?
from cargo-make.
I think both should work simultaneously.
For example, I might want to build and test all crates, create a binary distribution for the main crate and upload it somewhere, or zip the entire workspace and do something with it.
I think I'd prefer this:
main: Makefile.toml
[tasks.a_task_run_on_some_members]
workspace_members = ["crate_a", "crate_b"]
[tasks.a_task_run_on_all_members]
workspace_members = "*"
[tasks.task_in_root]
script = "tar cvzf all.tar.gz *"
dependencies = ["a_task_run_on_all_members"]
I'd prefer explicitly enabling the recursive behaviour.
from cargo-make.
So you are talking about a flow that runs tasks on workspace level and on members level.
thats a nice flow, and I guess you could do something like this to implement it (once i implement the cli flag today/tommorrow)
#this is the makefile in the workspace level (root crate)
[tasks.composite]
dependencies = ["member_flow", "workspace_flow"]
[tasks.member_flow]
command = "cargo"
args = ["make", "sometask"]
[tasks.workspace_flow]
#some tasks that should run on workspace level
and than run the whole thing by writing:
cargo make --noworkspace composite
Makes sense? very simple to define and use i think, and if someone reads it, it is simple to see what it actually does.
and no need to redefine the members in both makefile.toml and cargo.toml.
what do you think?
from cargo-make.
Checkout version 0.3.25 with the new --no-workspace cli arg.
I hope it provides the needed tools to build the flow you need, if not please tell me what you think is still needed.
from cargo-make.
@sagiegurari cool stuff.
I'll try it out soon, but I think it suits my purposes.
from cargo-make.
Related Issues (20)
- No any output log HOT 3
- External env vars are (wrongly?) detected as cycles in 0.36+ HOT 2
- ansi_term dependency is not maintained HOT 2
- Local dependencies for cargo-make scripts HOT 5
- Sub-command docs improvement HOT 4
- Allow `script_runner` for `load_script` HOT 14
- Install Crate using git HOT 3
- Env vars depending on others not always set HOT 10
- Panic with `set_env` with wrong input HOT 2
- cargo make workspace commands extend beyond workspace when path dependencies are specified HOT 4
- ctrl+c exits long-running command (REPL) unexpectedly HOT 2
- Stack overflow when extending default task HOT 1
- Rust-Script caching does not work HOT 5
- install_crate version attribute is not working HOT 3
- taplo install failing because --locked isnt default for bin crates HOT 6
- `CARGO_MAKE_CRATE_CUSTOM_TRIPLE_TARGET_DIRECTORY` is empty when no `build.target` HOT 6
- ${@} is not functioning in Windows HOT 6
- `cm_run_task` fails in `env_scripts` HOT 1
- Some Cargo-Make global environment variables are not available in plugin context HOT 5
- No environment variable reordering with profiles HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-make.