Skip to content

Instantly share code, notes, and snippets.

@arcnmx
Last active July 28, 2019 06:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arcnmx/311f16dd723e7b127da8aa4ca4abd654 to your computer and use it in GitHub Desktop.
Save arcnmx/311f16dd723e7b127da8aa4ca4abd654 to your computer and use it in GitHub Desktop.
carnix features
After line 225:
- match (b.next(), b.next()) {
- (Some(c), Some(d)) => {
- if let Some(dep) = dependencies.get_mut(c) {
- debug!("conditional: {:?} {:?} {:?}", c, a, d);
- dep.conditional_features.push(ConditionalFeature {
- feature: a.to_string(),
- dep_feature: d.to_string(),
- })
- }
- }
- (Some(c), None) => {
- // println!("conditional: {:?} {:?} {:?}", c, a, d);
- cond.push(ConditionalFeature {
In "["src", "krate.rs"]":
From line 225:
+ let feat = b.next();
+ if let Some(c) = feat {
+ cond.push(ConditionalFeature {
+ feature: a.to_string(),
+ dep_feature: c.to_string(),
+ })
+ }
+ if let (Some(c), Some(d)) = (feat, b.next()) {
+ if let Some(dep) = dependencies.get_mut(c) {
+ debug!("conditional: {:?} {:?} {:?}", c, a, d);
+ dep.conditional_features.push(ConditionalFeature {
After line 237:
- dep_feature: c.to_string(),
In "["src", "krate.rs"]":
From line 237:
+ dep_feature: d.to_string(),
After line 240:
- _ => {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment