Dummy workspace crate

This commit is contained in:
Dzmitry Malyshau committed 2020-06-18 14:16:04 -04:00
1 parent 6bca38feed
commit 0cd1ec2981
9 files changed
+37 -15

No files matched your search

+5 -3
View File
@@ -96,14 +96,16 @@ jobs:
name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
# temporary due to https://github.com/rust-lang/rust/issues/72467
# temporary due to https://github.com/Xudong-Huang/generator-rs/issues/21
toolchain: nightly-2020-05-01
override: true
- if: matrix.channel == 'stable'
run: rustup component add clippy
- name: cargo clippy/test
run: ${{ matrix.build_command }}
# build with no features first
- if: matrix.additional_core_features == ''
run: cargo check --manifest-path wgpu-core/Cargo.toml --no-default-features
- if: matrix.additional_core_features != ''
run: cargo check --manifest-path wgpu-core/Cargo.toml --features ${{ matrix.additional_core_features }}
- if: matrix.additional_player_features != ''
run: cargo check --manifest-path player/Cargo.toml --features ${{ matrix.additional_player_features }}
- run: ${{ matrix.build_command }}
Generated
+7
View File
@@ -279,6 +279,13 @@ version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "52ba6eb47c2131e784a38b726eb54c1e1484904f013e576a25354d0124161af6"
[[package]]
name = "dummy"
version = "0.1.0"
dependencies = [
"wgpu-core",
]
[[package]]
name = "env_logger"
version = "0.7.1"
+1
View File
@@ -1,5 +1,6 @@
[workspace]
members = [
"dummy",
"player",
"wgpu-core",
"wgpu-types",
+16
View File
@@ -0,0 +1,16 @@
[package]
name = "dummy"
version = "0.1.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
]
edition = "2018"
publish = false
[features]
[dependencies.wgc]
path = "../wgpu-core"
package = "wgpu-core"
version = "0.5"
features = ["battery", "trace"]
+3
View File
@@ -0,0 +1,3 @@
# wgpu dummy
This is a dummy build target that makes `cargo check` and `cargo test` in the workspace to cover all the API.
+1
View File
@@ -0,0 +1 @@
+1 -6
View File
@@ -1,10 +1,7 @@
[package]
name = "wgpu-core"
version = "0.5.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
]
authors = ["wgpu developers"]
edition = "2018"
description = "WebGPU core logic on gfx-hal"
homepage = "https://github.com/gfx-rs/wgpu"
@@ -18,8 +15,6 @@ license = "MPL-2.0"
default = []
trace = ["ron", "serde", "wgt/trace"]
replay = ["serde", "wgt/replay"]
#NOTE: glutin feature is not stable, use at your own risk
#glutin = ["gfx-backend-gl/glutin"]
[dependencies]
arrayvec = "0.5"
+2 -2
View File
@@ -256,7 +256,7 @@ impl Trace {
pub fn new(path: &std::path::Path) -> Result<Self, std::io::Error> {
log::info!("Tracing into '{:?}'", path);
let mut file = std::fs::File::create(path.join(FILE_NAME))?;
file.write(b"[\n")?;
file.write_all(b"[\n")?;
Ok(Trace {
path: path.to_path_buf(),
file,
@@ -287,6 +287,6 @@ impl Trace {
#[cfg(feature = "trace")]
impl Drop for Trace {
fn drop(&mut self) {
let _ = self.file.write(b"]");
let _ = self.file.write_all(b"]");
}
}
+1 -4
View File
@@ -1,10 +1,7 @@
[package]
name = "wgpu-types"
version = "0.5.0"
authors = [
"Dzmitry Malyshau <kvark@mozilla.com>",
"Joshua Groves <josh@joshgroves.com>",
]
authors = ["wgpu developers"]
edition = "2018"
description = "WebGPU types"
homepage = "https://github.com/gfx-rs/wgpu"