I don't seem to be able to build from source (using cargo 1.46.0). Are there any flags I should be using at build time? :
Updating crates.io index
Compiling yansi v0.6.0-dev (/tmp/yansi-master)
error: unexpected token: `concat`
--> src/paint.rs:87:17
|
87 | #[doc = concat!(
| ^^^^^^
...
205 | / constructors_for!(T, black: Black, red: Red, green: Green, yellow: Yellow,
206 | | blue: Blue, magenta: Magenta, cyan: Cyan, white: White);
| |________________________________________________________________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected token: `concat`
--> src/macros.rs:3:17
|
3 | #[doc = concat!(
| ^^^^^^
|
::: src/paint.rs:335:5
|
335 | / style_builder_for!(Paint<T>, |paint| paint.style.properties,
336 | | bold: BOLD, dimmed: DIMMED, italic: ITALIC,
337 | | underline: UNDERLINE, blink: BLINK, invert: INVERT,
338 | | hidden: HIDDEN, strikethrough: STRIKETHROUGH);
| |_____________________________________________________________________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected token: `concat`
--> src/macros.rs:3:17
|
3 | #[doc = concat!(
| ^^^^^^
|
::: src/style.rs:283:5
|
283 | / style_builder_for!(Style, |style| style.properties,
284 | | bold: BOLD, dimmed: DIMMED, italic: ITALIC,
285 | | underline: UNDERLINE, blink: BLINK, invert: INVERT,
286 | | hidden: HIDDEN, strikethrough: STRIKETHROUGH);
| |_____________________________________________________________________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: unexpected token: `concat`
--> src/style.rs:164:17
|
164 | #[doc = concat!(
| ^^^^^^
...
366 | / checker_for!(bold (is_bold): BOLD, dimmed (is_dimmed): DIMMED,
367 | | italic (is_italic): ITALIC, underline (is_underline): UNDERLINE,
368 | | blink (is_blink): BLINK, invert (is_invert): INVERT,
369 | | hidden (is_hidden): HIDDEN,
370 | | strikethrough (is_strikethrough): STRIKETHROUGH);
| |_________________________________________________________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
warning: unused import: `Property`
--> src/paint.rs:3:20
|
3 | use style::{Style, Property};
| ^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
--> src/style.rs:184:52
|
184 | fn write_spliced<T: Display>(c: &mut bool, f: &mut fmt::Write, t: T) -> fmt::Result {
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
|
= note: `#[warn(bare_trait_objects)]` on by default
warning: trait objects without an explicit `dyn` are deprecated
--> src/style.rs:411:38
|
411 | pub fn fmt_prefix(&self, f: &mut fmt::Write) -> fmt::Result {
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> src/style.rs:473:38
|
473 | pub fn fmt_suffix(&self, f: &mut fmt::Write) -> fmt::Result {
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
warning: trait objects without an explicit `dyn` are deprecated
--> src/color.rs:73:43
|
73 | pub(crate) fn ansi_fmt(&self, f: &mut fmt::Write) -> fmt::Result {
| ^^^^^^^^^^ help: use `dyn`: `dyn fmt::Write`
error: aborting due to 4 previous errors; 5 warnings emitted
error: could not compile `yansi`.