Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install fails #15

Closed
jcgruenhage opened this issue Apr 19, 2023 · 1 comment
Closed

cargo install fails #15

jcgruenhage opened this issue Apr 19, 2023 · 1 comment

Comments

@jcgruenhage
Copy link

Full log of the failure:

❯ cargo install sectxt                                 
    Updating crates.io index
remote: Enumerating objects: 24300, done.
remote: Counting objects: 100% (16844/16844), done.
remote: Compressing objects: 100% (553/553), done.
remote: Total 24300 (delta 16350), reused 16758 (delta 16264), pack-reused 7456
Receiving objects: 100% (24300/24300), 14.83 MiB | 9.25 MiB/s, done.
Resolving deltas: 100% (17862/17862), completed with 1530 local objects.
From /~https://github.com/rust-lang/crates.io-index
   6463a68b6b..df6a6bcf39             -> origin/HEAD
  Downloaded sectxt v0.2.2
  Downloaded 1 crate (16.3 KB) in 4.01s
  Installing sectxt v0.2.2
  Downloaded tracing-serde v0.1.3
  Downloaded anstyle-query v1.0.0
  Downloaded colorchoice v1.0.0
  Downloaded argh_shared v0.1.10
  Downloaded rustc-demangle v0.1.23
  Downloaded valuable v0.1.0
  Downloaded argh_derive v0.1.10
  Downloaded anstyle v1.0.0
  Downloaded human-panic v1.1.4
  Downloaded argh v0.1.10
  Downloaded sectxtlib v0.2.2
  Downloaded oxilangtag v0.1.3
  Downloaded os_info v3.7.0
  Downloaded anstream v0.3.0
  Downloaded anstyle-parse v0.2.0
  Downloaded iri-string v0.7.0
  Downloaded serde_json v1.0.96
  Downloaded h2 v0.3.18
  Downloaded hyper v0.14.26
  Downloaded syn v2.0.15
  Downloaded rustix v0.37.12
  Downloaded linux-raw-sys v0.3.2
  Downloaded valuable-derive v0.1.0
  Downloaded 23 crates (2.4 MB) in 4.08s (largest was `linux-raw-sys` at 1006.3 KB)
   Compiling proc-macro2 v1.0.56
   Compiling unicode-ident v1.0.8
   Compiling quote v1.0.26
   Compiling autocfg v1.1.0
   Compiling libc v0.2.141
   Compiling cfg-if v1.0.0
   Compiling log v0.4.17
   Compiling syn v1.0.109
   Compiling memchr v2.5.0
   Compiling once_cell v1.17.1
   Compiling cc v1.0.79
   Compiling serde_derive v1.0.160
   Compiling serde v1.0.160
   Compiling pin-project-lite v0.2.9
   Compiling futures-core v0.3.28
   Compiling pkg-config v0.3.26
   Compiling bitflags v1.3.2
   Compiling futures-task v0.3.28
   Compiling futures-sink v0.3.28
   Compiling bytes v1.4.0
   Compiling tracing-core v0.1.30
   Compiling itoa v1.0.6
   Compiling futures-channel v0.3.28
   Compiling slab v0.4.8
   Compiling indexmap v1.9.3
   Compiling tokio v1.27.0
   Compiling hashbrown v0.12.3
   Compiling futures-util v0.3.28
   Compiling pin-utils v0.1.0
   Compiling futures-io v0.3.28
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.50
   Compiling io-lifetimes v1.0.10
   Compiling fnv v1.0.7
   Compiling foreign-types v0.3.2
   Compiling num-traits v0.2.15
   Compiling http v0.2.9
   Compiling httparse v1.8.0
   Compiling tinyvec_macros v0.1.1
   Compiling rustix v0.37.12
   Compiling native-tls v0.2.11
   Compiling tinyvec v1.6.0
   Compiling num-integer v0.1.45
   Compiling regex-syntax v0.6.29
   Compiling linux-raw-sys v0.3.2
   Compiling percent-encoding v2.2.0
   Compiling syn v2.0.15
   Compiling openssl-sys v0.9.85
   Compiling try-lock v0.2.4
   Compiling openssl-probe v0.1.5
   Compiling ryu v1.0.13
   Compiling want v0.3.0
   Compiling form_urlencoded v1.1.0
   Compiling http-body v0.4.5
   Compiling backtrace v0.3.67
   Compiling num_cpus v1.15.0
   Compiling socket2 v0.4.9
   Compiling mio v0.8.6
   Compiling unicode-normalization v0.1.22
   Compiling lazy_static v1.4.0
   Compiling utf8parse v0.2.1
   Compiling serde_json v1.0.96
   Compiling gimli v0.27.2
   Compiling unicode-bidi v0.3.13
   Compiling tower-service v0.3.2
   Compiling thiserror v1.0.40
   Compiling valuable v0.1.0
   Compiling winnow v0.4.1
   Compiling adler v1.0.2
   Compiling httpdate v1.0.2
   Compiling miniz_oxide v0.6.2
   Compiling regex-automata v0.1.10
   Compiling idna v0.3.0
   Compiling anstyle-parse v0.2.0
   Compiling getrandom v0.2.9
   Compiling time v0.1.45
   Compiling object v0.30.3
   Compiling rustc-demangle v0.1.23
   Compiling iana-time-zone v0.1.56
   Compiling anstyle v1.0.0
   Compiling colorchoice v1.0.0
   Compiling overload v0.1.1
   Compiling anstyle-query v1.0.0
   Compiling argh_shared v0.1.10
   Compiling anyhow v1.0.70
   Compiling minimal-lexical v0.2.1
   Compiling nu-ansi-term v0.46.0
   Compiling matchers v0.1.0
   Compiling is-terminal v0.4.7
   Compiling anstream v0.3.0
   Compiling nom v7.1.3
   Compiling chrono v0.4.24
   Compiling url v2.3.1
   Compiling uuid v1.3.1
   Compiling addr2line v0.19.0
   Compiling regex v1.7.3
   Compiling sharded-slab v0.1.4
   Compiling tracing-log v0.1.3
   Compiling thread_local v1.1.7
   Compiling encoding_rs v0.8.32
   Compiling oxilangtag v0.1.3
   Compiling mime v0.3.17
   Compiling smallvec v1.10.0
   Compiling iri-string v0.7.0
   Compiling base64 v0.21.0
   Compiling ipnet v2.7.2
   Compiling tokio-macros v2.0.0
   Compiling futures-macro v0.3.28
   Compiling openssl-macros v0.1.1
   Compiling thiserror-impl v1.0.40
   Compiling tracing-attributes v0.1.23
   Compiling valuable-derive v0.1.0
   Compiling argh_derive v0.1.10
   Compiling sectxtlib v0.2.2
   Compiling argh v0.1.10
   Compiling tracing v0.1.37
   Compiling futures-executor v0.3.28
   Compiling futures v0.3.28
   Compiling tokio-util v0.7.7
   Compiling tokio-native-tls v0.3.1
   Compiling h2 v0.3.18
   Compiling toml_datetime v0.6.1
   Compiling serde_spanned v0.6.1
   Compiling serde_urlencoded v0.7.1
   Compiling os_info v3.7.0
   Compiling tracing-serde v0.1.3
   Compiling toml_edit v0.19.8
   Compiling tracing-subscriber v0.3.16
   Compiling hyper v0.14.26
   Compiling toml v0.7.3
   Compiling human-panic v1.1.4
   Compiling hyper-tls v0.5.0
   Compiling reqwest v0.11.16
   Compiling sectxt v0.2.2
error[E0277]: the trait bound `valuable::Value<'_>: tracing::Value` is not satisfied
  --> /home/jcgruenhage/.cargo/registry/src/github.com-1ecc6299db9ec823/sectxt-0.2.2/src/website.rs:33:25
   |
33 |                         info!(domain = self.domain, content = txt.as_value(), status = "OK");
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `tracing::Value` is not implemented for `valuable::Value<'_>`
   |
   = help: the following other types implement trait `tracing::Value`:
             &'a T
             &'a mut T
             (dyn std::error::Error + 'static)
             (dyn std::error::Error + Sync + 'static)
             (dyn std::error::Error + std::marker::Send + 'static)
             (dyn std::error::Error + std::marker::Send + Sync + 'static)
             Arguments<'a>
             Box<T>
           and 34 others
   = note: required for the cast from `valuable::Value<'_>` to the object type `dyn tracing::Value`
   = note: this error originates in the macro `$crate::valueset` which comes from the expansion of the macro `info` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0277`.
error: could not compile `sectxt` due to previous error
error: failed to compile `sectxt v0.2.2`, intermediate artifacts can be found at `/tmp/cargo-installitrxwQ`
@eikendev
Copy link
Owner

Hi @jcgruenhage, thanks for reporting this issue. As we are currently making use of tracing's support for valuable (which is still unstable) please install as follows:

RUSTFLAGS="--cfg tracing_unstable" cargo install sectxt

I will update the README accordingly. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants