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
After generating a grammar with lalrpop 0.18.1 the resulting file contains a number of pub entires:
pub struct __StateMachine
pub trait __ToTriple
pub enum __Symbol
These leak into my library API, which isn't great. But worse, because __Symbol contains all the AST nodes of my grammar, it forces those nodes to be public too. Should lalrpop only ever use pub(crate)? Or is there a configuration to avoid public symbols? I already use pub(crate) TopLevel: ... in my definitions.
The text was updated successfully, but these errors were encountered:
After generating a grammar with lalrpop 0.18.1 the resulting file contains a number of
pub
entires:pub struct __StateMachine
pub trait __ToTriple
pub enum __Symbol
These leak into my library API, which isn't great. But worse, because
__Symbol
contains all the AST nodes of my grammar, it forces those nodes to be public too. Should lalrpop only ever usepub(crate)
? Or is there a configuration to avoid public symbols? I already usepub(crate) TopLevel: ...
in my definitions.The text was updated successfully, but these errors were encountered: