Sinono3 / souvlaki

A cross-platform library for handling OS media controls and metadata.
MIT License
79 stars 15 forks source link

error: unexpected token: `include_str` #16

Closed ChillerDragon closed 3 years ago

ChillerDragon commented 3 years ago

Build failing on arch linux

$ rustc --version
rustc 1.49.0 (e1884a8e3 2020-12-29)
$ cargo build --release
    Updating crates.io index
  Downloaded libc v0.2.100
  Downloaded 1 crate (528.2 KB) in 0.75s
   Compiling pkg-config v0.3.19
   Compiling libc v0.2.100
   Compiling souvlaki v0.4.1 (/home/chiller/Desktop/git-extern/souvlaki)
   Compiling libdbus-sys v0.2.1
   Compiling dbus v0.9.3
   Compiling dbus-crossroads v0.4.0
error: unexpected token: `include_str`
 --> 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
jpochyla commented 3 years ago

Latest Rust stable (1.54) is needed.

ChillerDragon commented 3 years ago

Ah right sorry did not notice I am outdated seems like rustc is coming from rustup not my packet manager.