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:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: -Z avoid-dev-deps --features example_generated --target thumbv6m-none-eabi
|
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]
|
[package]
|
||||||
|
|
||||||
name = "bitflags"
|
name = "bitflags"
|
||||||
# NB: When modifying, also modify:
|
# NB: When modifying, also modify:
|
||||||
# 1. html_root_url in lib.rs
|
# 1. html_root_url in lib.rs
|
||||||
# 2. number in readme (for breaking changes)
|
# 2. number in readme (for breaking changes)
|
||||||
version = "1.2.1"
|
version = "1.2.1"
|
||||||
|
edition = "2018"
|
||||||
authors = ["The Rust Project Developers"]
|
authors = ["The Rust Project Developers"]
|
||||||
license = "MIT/Apache-2.0"
|
license = "MIT/Apache-2.0"
|
||||||
keywords = ["bit", "bitmask", "bitflags", "flags"]
|
keywords = ["bit", "bitmask", "bitflags", "flags"]
|
||||||
@ -16,22 +16,22 @@ categories = ["no-std"]
|
|||||||
description = """
|
description = """
|
||||||
A macro to generate structures which behave like bitflags.
|
A macro to generate structures which behave like bitflags.
|
||||||
"""
|
"""
|
||||||
exclude = [
|
exclude = ["bors.toml"]
|
||||||
"appveyor.yml",
|
|
||||||
"bors.toml"
|
|
||||||
]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
|
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
|
||||||
compiler_builtins = { version = '0.1.2', optional = true }
|
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]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
example_generated = []
|
example_generated = []
|
||||||
rustc-dep-of-std = ["core", "compiler_builtins"]
|
rustc-dep-of-std = ["core", "compiler_builtins"]
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = [ "example_generated" ]
|
features = ["example_generated"]
|
||||||
|
|
||||||
[workspace]
|
|
||||||
members = ["test_suite"]
|
|
||||||
|
@ -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;
|
use bitflags::bitflags;
|
||||||
|
|
||||||
bitflags! {
|
bitflags! {
|
Loading…
Reference in New Issue
Block a user