-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82f71ae
commit 29499c4
Showing
17 changed files
with
164 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
#[cfg(all(feature = "syn", feature = "syn2"))] | ||
compile_error!("Features 'syn' and 'syn2' cannot be enabled at the same time"); | ||
|
||
#[cfg(not(all(feature = "syn", feature = "syn2")))] | ||
mod ast; | ||
#[cfg(not(all(feature = "syn", feature = "syn2")))] | ||
mod attr; | ||
#[cfg(not(all(feature = "syn", feature = "syn2")))] | ||
pub mod expand; | ||
#[cfg(not(all(feature = "syn", feature = "syn2")))] | ||
mod kw; | ||
#[cfg(not(all(feature = "syn", feature = "syn2")))] | ||
mod validate; | ||
|
||
mod tests; | ||
mod tests; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,19 @@ | ||
[package] | ||
name = "o2o-tests" | ||
version = "0.5.0" | ||
version = "0.5.1-beta1" | ||
edition = "2021" | ||
authors = ["Artem Romanenia <artem.romanenia@gmail.com>"] | ||
description = "Tests for 'o2o' crate" | ||
license = "MIT OR Apache-2.0" | ||
repository = "https://github.com/Artem-Romanenia/o2o" | ||
|
||
[dependencies] | ||
o2o = { version = "0.5.0", path = "../" } | ||
o2o = { version = "0.5.1-beta1", default-features = false, path = "../" } | ||
anyhow = "1.0.86" | ||
|
||
[dev-dependencies] | ||
test-case = "3" | ||
|
||
[features] | ||
syn1 = ["o2o/syn1"] | ||
syn2 = ["o2o/syn2"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#![no_std] | ||
#![doc = include_str!("../README.md")] | ||
|
||
#[cfg(feature = "macro")] | ||
#[cfg(any(feature = "syn1", feature = "syn2"))] | ||
pub use o2o_macros::*; | ||
|
||
pub mod traits; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
cargo test -q -p o2o | ||
cargo test -q -p o2o --no-default-features --features syn1 | ||
cargo test -q -p o2o --no-default-features --features syn2 | ||
cargo test -q -p o2o-tests --features syn1 | ||
cargo test -q -p o2o-tests --features syn2 | ||
cargo test -q -p o2o-impl --features syn | ||
cargo test -q -p o2o-impl --features syn2 |