File tree Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Expand file tree Collapse file tree 3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 34
34
35
35
- name : Clippy
36
36
continue-on-error : ${{ matrix.toolchain == 'nightly' }}
37
- run : cargo clippy --workspace --all-targets
37
+ run : cargo clippy --workspace --all-targets --all-features
38
38
39
39
- name : Test
40
40
run : cargo test --workspace
Original file line number Diff line number Diff line change @@ -27,5 +27,8 @@ default = ["env"]
27
27
detach = [" dep:powerpack-detach" ]
28
28
env = [" dep:powerpack-env" ]
29
29
30
+ # Private API: Prevents the compile_error! for the powerpack binary
31
+ _internal_test = []
32
+
30
33
[profile .release ]
31
34
strip = true
Original file line number Diff line number Diff line change
1
+ #[ cfg( not( feature = "_internal_test" ) ) ]
2
+ compile_error ! { "you meant to install powerpack-cli: type `cargo install powerpack-cli`" }
3
+ fn main ( ) {
4
+ eprintln ! ( "you meant to install powerpack-cli: type `cargo install powerpack-cli`" ) ;
5
+ std:: process:: exit ( 1 ) ;
6
+ }
You can’t perform that action at this time.
0 commit comments