mirror of
https://gitee.com/openharmony/third_party_rust_bitflags
synced 2024-11-27 01:11:37 +00:00
Move test_suite to tests
This commit is contained in:
parent
75f7192557
commit
777cd3f80a
25
.github/workflows/rust.yml
vendored
25
.github/workflows/rust.yml
vendored
@ -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
|
18
Cargo.toml
18
Cargo.toml
@ -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,22 +16,22 @@ 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 = []
|
||||
rustc-dep-of-std = ["core", "compiler_builtins"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
features = [ "example_generated" ]
|
||||
|
||||
[workspace]
|
||||
members = ["test_suite"]
|
||||
features = ["example_generated"]
|
||||
|
@ -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"
|
@ -1,5 +1,3 @@
|
||||
#![cfg(feature = "unstable")]
|
||||
|
||||
use bitflags::bitflags;
|
||||
|
||||
bitflags! {
|
Loading…
Reference in New Issue
Block a user