Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

convert ena to no-std #48

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

indietyp
Copy link

Addresses #47 and converts ena to be no-std compatible.

I have taken the liberty also to make log optional (as some crates may prefer to use tracing or another solution) and removing the bitvec.rs file (addressing #18).

I have run the crate through cargo-hack to verify that all feature permutations work as expected.

The `cargo-hack` command used

cargo hack --optional-deps --feature-powerset nextest run

src/undo_log.rs Outdated
Comment on lines 187 to 188
#[cfg(feature = "log")]
debug!("rollback_to({})", snapshot.undo_len);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you add a custom debug macro that does the cfg?
like

macro_rules! debug {
  ($($tt:tt)*) => {
    #[cfg(feature = "log")]
    log::debug!($($tt)*);
  };
}

}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed in a0fb25d and e32df28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants