qryxip / cargo-equip

A Cargo subcommand to bundle your code into one `.rs` file for competitive programming
Apache License 2.0
78 stars 10 forks source link

Does not work with Nightly Rust #118

Closed qryxip closed 3 years ago

qryxip commented 3 years ago

https://github.com/qryxip/cargo-equip/blob/3a552f76fa7ee6ed1df8c908adda8dcdbc90bb5e/src/workspace.rs#L346-L356

     Running `/home/ryo/.cargo/bin/rustup run nightly cargo udeps --output json -p library-checker --bin sqrt_mod`
    Checking library-checker v0.0.0 (/home/ryo/src/competitive/library-checker)
    Finished dev [unoptimized + debuginfo] target(s) in 0.17s
info: Loading save analysis from "/home/ryo/src/competitive/library-checker/target/debug/deps/save-analysis/sqrt_mod-2aea88e752fd2a7f.json"
error: all(debug_assertions,panic="unwind",target_arch="x86_64",target_endian="little",target_env="gnu",target_family="unix",target_feature="fxsr",target_feature="sse",target_feature="sse2",target_has_atomic="16",target_has_atomic="32",target_has_atomic="64",target_has_atomic="8",target_has_atomic="ptr",target_has_atomic_equal_alignment="16",target_has_atomic_equal_alignment="32",target_has_atomic_equal_alignment="64",target_has_atomic_equal_alignment="8",target_has_atomic_equal_alignment="ptr",target_has_atomic_load_store="16",target_has_atomic_load_store="32",target_has_atomic_load_store="64",target_has_atomic_load_store="8",target_has_atomic_load_store="ptr",target_os="linux",target_pointer_width="64",target_thread_local,target_vendor="unknown",unix)
                                                                                                                                                                                       ^^^^^^^^^^^^^^^^^ expected one of `target_arch`, `target_feature`, `target_os`, `target_family`, `target_env`, `target_endian`, `target_pointer_width`, `target_vendor` here
qryxip commented 3 years ago
❯ rustc +stable --print cfg
debug_assertions
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_os="linux"
target_pointer_width="64"
target_vendor="unknown"
unix
❯ rustc +nightly --print cfg
debug_assertions
panic="unwind"
target_arch="x86_64"
target_endian="little"
target_env="gnu"
target_family="unix"
target_feature="fxsr"
target_feature="sse"
target_feature="sse2"
target_has_atomic="16"
target_has_atomic="32"
target_has_atomic="64"
target_has_atomic="8"
target_has_atomic="ptr"
target_has_atomic_equal_alignment="16"
target_has_atomic_equal_alignment="32"
target_has_atomic_equal_alignment="64"
target_has_atomic_equal_alignment="8"
target_has_atomic_equal_alignment="ptr"
target_has_atomic_load_store="16"
target_has_atomic_load_store="32"
target_has_atomic_load_store="64"
target_has_atomic_load_store="8"
target_has_atomic_load_store="ptr"
target_os="linux"
target_pointer_width="64"
target_thread_local
target_vendor="unknown"
unix
qryxip commented 3 years ago

https://github.com/EmbarkStudios/cfg-expr/blob/25290dba689ce3f3ab589926ba545875f048c130/src/expr/parser.rs#L180-L195

qryxip commented 3 years ago

120

qryxip commented 3 years ago

.