install components in ci

This commit is contained in:
Connor Skees 2023-07-09 22:12:12 +00:00
parent fa744216bd
commit 7d1c5099a0
4 changed files with 9 additions and 6 deletions

View File

@ -32,7 +32,9 @@ jobs:
with: with:
toolchain: "1.59.0" toolchain: "1.59.0"
- run: cargo fmt --all -- --check - run: |
rustup component add clippy
cargo fmt --all -- --check
clippy: clippy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -44,7 +46,9 @@ jobs:
with: with:
toolchain: "1.59.0" toolchain: "1.59.0"
- run: cargo clippy --features=macro -- -D warnings - run: |
rustup component add rustfmt
cargo clippy --features=macro -- -D warnings
boostrap: boostrap:
runs-on: ubuntu-latest runs-on: ubuntu-latest

View File

@ -18,8 +18,7 @@ bench = false
[package.metadata.docs.rs] [package.metadata.docs.rs]
# To build locally: # To build locally:
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --no-deps --open
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"] rustdoc-args = ["--cfg", "doc_cfg"]
[dependencies] [dependencies]

View File

@ -4,6 +4,7 @@ use std::{cell::RefCell, collections::HashSet, path::PathBuf};
use grass_compiler::StdFs; use grass_compiler::StdFs;
use proc_macro::TokenStream; use proc_macro::TokenStream;
#[cfg(not(feature = "nightly"))]
use quote::format_ident; use quote::format_ident;
use syn::{parse_macro_input, LitStr}; use syn::{parse_macro_input, LitStr};

View File

@ -25,8 +25,7 @@ bench = false
[package.metadata.docs.rs] [package.metadata.docs.rs]
# To build locally: # To build locally:
# RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --all-features --no-deps --open # RUSTDOCFLAGS="--cfg doc_cfg" cargo +nightly doc --no-deps --open
all-features = true
rustdoc-args = ["--cfg", "doc_cfg"] rustdoc-args = ["--cfg", "doc_cfg"]
[dependencies] [dependencies]