Move test_suite to tests

This commit is contained in:
konsumlamm 2021-07-19 19:20:53 +02:00
parent 75f7192557
commit 777cd3f80a
11 changed files with 9 additions and 47 deletions

View File

@ -54,28 +54,3 @@ jobs:
with:
command: build
args: -Z avoid-dev-deps --features example_generated --target thumbv6m-none-eabi
suite:
name: Test suite
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
rust:
- nightly
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Default features
uses: actions-rs/cargo@v1
with:
command: test
args: -p test_suite

View File

@ -1,10 +1,10 @@
[package]
name = "bitflags"
# NB: When modifying, also modify:
# 1. html_root_url in lib.rs
# 2. number in readme (for breaking changes)
version = "1.2.1"
edition = "2018"
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
keywords = ["bit", "bitmask", "bitflags", "flags"]
@ -16,15 +16,18 @@ categories = ["no-std"]
description = """
A macro to generate structures which behave like bitflags.
"""
exclude = [
"appveyor.yml",
"bors.toml"
]
exclude = ["bors.toml"]
[dependencies]
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
compiler_builtins = { version = '0.1.2', optional = true }
[dev-dependencies]
trybuild = "1.0"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
[features]
default = []
example_generated = []
@ -32,6 +35,3 @@ rustc-dep-of-std = ["core", "compiler_builtins"]
[package.metadata.docs.rs]
features = ["example_generated"]
[workspace]
members = ["test_suite"]

View File

@ -1,11 +0,0 @@
[project]
name = "test_suite"
version = "0.0.0"
edition = "2018"
[dependencies]
bitflags = { path = "../" }
trybuild = "1.0"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"

View File

@ -1,5 +1,3 @@
#![cfg(feature = "unstable")]
use bitflags::bitflags;
bitflags! {