diff --git a/Cargo.toml b/Cargo.toml index 92ef707..987b029 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,7 +3,7 @@ name = "grass" version = "0.1.0" description = "An SCSS compiler in Rust" readme = "README.md" -license = "MIT OR Apache-2.0" +license = "MIT" categories = ["command-line-utilities", "web-programming"] keywords = ["scss", "sass", "css"] repository = "https://github.com/connorskees/grass" @@ -26,6 +26,7 @@ clap = { version = "2.33.0", optional = true } [features] default = ["commandline"] commandline = ["clap"] +nightly = [] [dev-dependencies] # test imports diff --git a/src/lib.rs b/src/lib.rs index 8d59885..a7f4320 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -39,7 +39,7 @@ // than they should clippy::module_name_repetitions )] -#![feature(track_caller)] +#![cfg_attr(feature = "nightly", feature(track_caller))] // todo! handle erroring on styles at the toplevel use std::fmt::{self, Display}; use std::fs; diff --git a/src/utils.rs b/src/utils.rs index 6c68c4d..91b8de3 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -18,7 +18,7 @@ pub(crate) fn devour_whitespace, W: IsWhitespace>(s: &mut found_whitespace } -#[track_caller] +#[cfg_attr(feature = "nightly", track_caller)] pub(crate) fn deref_variable(name: &str, scope: &Scope) -> Vec { let mut toks = scope .vars