Skip to content

cbuild warns about #[cfg(test)] #451

@cryptomilk

Description

@cryptomilk

If I run cargo cbuild I get:

warning: unexpected `cfg` condition name: `test`                       
   --> src/group_record.rs:236:7
    |                                                                                        
236 | #[cfg(test)]
    |       ^^^^
    |

How can I get rid of that warning with cbuild? I have a library and unit tests are implemented in the rust files itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions