[GH-ISSUE #114] Build not working #84

Closed
opened 2026-02-28 14:30:30 +03:00 by kerem · 5 comments
Owner

Originally created by @Bios-Marcel on GitHub (Aug 18, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/114

OS: Ubuntu 20.04 amd64
Rust: rustc 1.49.0 (e1884a8e3 2020-12-29)
Commit: 967c077

Output:

marcel@marcel-desktop:/mnt/data/code/psst$ git submodule update --recursive --init
marcel@marcel-desktop:/mnt/data/code/psst$ cargo build --release
warning: /mnt/data/code/psst/Cargo.toml: unused manifest key: profile.dev.split-debuginfo
   Compiling serde v1.0.127
   Compiling thiserror v1.0.26
   Compiling futures-util v0.3.16
   Compiling time-macros v0.1.1
   Compiling tracing v0.1.26
   Compiling souvlaki v0.4.1
error: unexpected token: `include_str`
 --> /home/marcel/.cargo/registry/src/github.com-1ecc6299db9ec823/souvlaki-0.4.1/src/lib.rs:1:10
  |
1 | #![doc = include_str!("../README.md")]
  |          ^^^^^^^^^^^

error: aborting due to previous error

error: could not compile `souvlaki`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed

Am I missing something? This is the same commit as the one in the CI, so it should work, right?

Originally created by @Bios-Marcel on GitHub (Aug 18, 2021). Original GitHub issue: https://github.com/jpochyla/psst/issues/114 OS: Ubuntu 20.04 amd64 Rust: rustc 1.49.0 (e1884a8e3 2020-12-29) Commit: 967c077 Output: ``` marcel@marcel-desktop:/mnt/data/code/psst$ git submodule update --recursive --init marcel@marcel-desktop:/mnt/data/code/psst$ cargo build --release warning: /mnt/data/code/psst/Cargo.toml: unused manifest key: profile.dev.split-debuginfo Compiling serde v1.0.127 Compiling thiserror v1.0.26 Compiling futures-util v0.3.16 Compiling time-macros v0.1.1 Compiling tracing v0.1.26 Compiling souvlaki v0.4.1 error: unexpected token: `include_str` --> /home/marcel/.cargo/registry/src/github.com-1ecc6299db9ec823/souvlaki-0.4.1/src/lib.rs:1:10 | 1 | #![doc = include_str!("../README.md")] | ^^^^^^^^^^^ error: aborting due to previous error error: could not compile `souvlaki` To learn more, run the command again with --verbose. warning: build failed, waiting for other jobs to finish... error: build failed ``` Am I missing something? This is the same commit as the one in the CI, so it should work, right?
kerem closed this issue 2026-02-28 14:30:30 +03:00
Author
Owner

@stared commented on GitHub (Aug 18, 2021):

I have the same error (for rustc 1.53.0 (53cb7b09b 2021-06-17)) after running cargo build.

<!-- gh-comment-id:901389005 --> @stared commented on GitHub (Aug 18, 2021): I have the same error (for `rustc 1.53.0 (53cb7b09b 2021-06-17)`) after running `cargo build`.
Author
Owner

@jpochyla commented on GitHub (Aug 18, 2021):

Latest Rust stable is needed.

<!-- gh-comment-id:901406377 --> @jpochyla commented on GitHub (Aug 18, 2021): Latest Rust stable is needed.
Author
Owner

@rklasen commented on GitHub (Aug 19, 2021):

I've had the same issue, updating rust with rustup update fixed it.

<!-- gh-comment-id:901709812 --> @rklasen commented on GitHub (Aug 19, 2021): I've had the same issue, updating rust with `rustup update` fixed it.
Author
Owner

@Bios-Marcel commented on GitHub (Aug 19, 2021):

The compiler error is just pretty user unfriendly :)

<!-- gh-comment-id:901771580 --> @Bios-Marcel commented on GitHub (Aug 19, 2021): The compiler error is just pretty user unfriendly :)
Author
Owner

@stared commented on GitHub (Aug 19, 2021):

I updated that, and it works!
@jpochyla - you were right and by lastest, you really mean lastest, not almost that

  • rustc 1.54.0 (a178d0322 2021-07-26) works
  • rustc 1.53.0 (53cb7b09b 2021-06-17) does not work
<!-- gh-comment-id:901794816 --> @stared commented on GitHub (Aug 19, 2021): I updated that, and it works! @jpochyla - you were right and by lastest, you really mean lastest, not almost that * rustc 1.54.0 (a178d0322 2021-07-26) works * rustc 1.53.0 (53cb7b09b 2021-06-17) does not work
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/psst#84
No description provided.