Skip to content

Commit

Permalink
chore: fixing cargo test --all
Browse files Browse the repository at this point in the history
  • Loading branch information
thlorenz committed Apr 29, 2021
1 parent 627e78c commit f4e065d
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 11 deletions.
2 changes: 2 additions & 0 deletions examples/dart/todo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ edition = "2018"
name = "todo"
crate-type = ["cdylib"]
path = "src/app.rs"
doctest = false
test = false

[[bin]]
name = "rid_build"
Expand Down
3 changes: 3 additions & 0 deletions rid-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Thorsten Lorenz <[email protected]>"]
edition = "2018"

[lib]
doctest = false

[dependencies]
rid_common = { path = "../rid-common" }
rid_ffi = { path = "../rid-ffi" }
Expand Down
3 changes: 2 additions & 1 deletion rid-build/src/bindings_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ impl<'a> BindingsGenerator<'a> {
}
}

#[cfg(test)]
// TODO: disabled due to getting stuck
#[cfg(test_disabled)]
mod tests {
use super::*;

Expand Down
3 changes: 2 additions & 1 deletion rid-build/src/dart_generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ import '{ffigen_binding}' as {ffigen_bind};
}
}

#[cfg(test)]
// TODO: disabled due to getting stuck
#[cfg(test_disabled)]
mod tests {
use super::*;

Expand Down
3 changes: 2 additions & 1 deletion rid-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ pub fn build(build_config: &BuildConfig) -> Result<()> {
Ok(())
}

#[cfg(test)]
// TODO: disabled due to getting stuck
#[cfg(test_disabled)]
mod tests {
use super::*;

Expand Down
3 changes: 3 additions & 0 deletions rid-common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ name = "rid_common"
version = "0.1.0"
authors = ["Thorsten Lorenz <[email protected]>"]
edition = "2018"

[lib]
doctest = false
3 changes: 3 additions & 0 deletions rid-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
authors = ["Thorsten Lorenz <[email protected]>"]
edition = "2018"

[lib]
doctest = false

[dependencies]
rid_common = { path = "../rid-common" }

Expand Down
3 changes: 3 additions & 0 deletions rid-macro-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ publish = false

[workspace]

[lib]
doctest = false

[[bin]]
name = "rid_macro_test"
path = "main.rs"
Expand Down
5 changes: 1 addition & 4 deletions rid-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,12 @@ edition = "2018"

[lib]
proc-macro = true
doctest=false

# [[bin]]
# name = "main"
# path = "src/main.rs"

[[test]]
name = "tests"
path = "tests/expand.rs"

[dependencies]
rid_macro_impl = { path = "../rid-macro-impl" }

Expand Down
4 changes: 0 additions & 4 deletions rid-macro/tests/expand.rs

This file was deleted.

0 comments on commit f4e065d

Please sign in to comment.