Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
if: ${{ !matrix.no_std }}
run: cargo test --verbose

- name: Cargo test no default features
if: matrix.nightly
run: cargo test --verbose --no-default-features

- name: Cargo test all features
if: matrix.nightly
run: cargo test --verbose --all-features
Expand All @@ -69,6 +73,10 @@ jobs:
if: matrix.nightly
run: cargo doc --all-features --verbose

- name: Cargo bench no default features
if: matrix.nightly
run: cargo clean && cargo bench --verbose --no-default-features

- name: Cargo bench all features
if: matrix.nightly
run: cargo clean && cargo bench --verbose --all-features
Expand Down
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@
// except according to those terms.

#![doc = include_str!("../README.md")]
#![no_std]
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(feature = "specialization", allow(incomplete_features))]
#![cfg_attr(feature = "specialization", feature(specialization, trusted_len))]
#![cfg_attr(feature = "may_dangle", feature(dropck_eyepatch))]
#![cfg_attr(not(feature = "allocator-api2"), feature(allocator_api))]

extern crate alloc;
#[cfg(feature = "std")]
extern crate std;

#[cfg(feature = "borsh")]
mod borsh;
Expand All @@ -33,7 +32,7 @@ mod specialization;
mod taggedlen;

#[cfg(not(feature = "allocator-api2"))]
use alloc::{
use alloc::alloc::{
Allocator,
Global
};
Expand Down