You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I try to add these cfg options inside a foreign_enum macro, I receive the following error: error: Expect doc attribute or doc comment or derive here, got 'cfg (any (feature = "feature1" , feature = "feature2"))'
If I leave out the cfg options, and compile without those features i get the following error: (Java example) no variant or associated item named "COOL" found for enum "ManagerStorage" in the current scope
(Due to the actual enum beeing linked to something in the feature crate)
Is there a way to do this currently?
Thank you for developing this crate!
The text was updated successfully, but these errors were encountered:
Hi!
I would like to have a specific enum generated only when the rust config has a feature enabled as well.
Rust enum example:
If I try to add these
cfg
options inside aforeign_enum
macro, I receive the following error:error: Expect doc attribute or doc comment or derive here, got 'cfg (any (feature = "feature1" , feature = "feature2"))'
If I leave out the
cfg
options, and compile without those features i get the following error: (Java example)no variant or associated item named "COOL" found for enum "ManagerStorage" in the current scope
(Due to the actual enum beeing linked to something in the feature crate)
Is there a way to do this currently?
Thank you for developing this crate!
The text was updated successfully, but these errors were encountered: