Skip to content

Expose BundleConfiguration #237

@jiwonz

Description

@jiwonz

BundleConfiguration is currently not pub useed (exported), so it is not exposed to the darklua_core library. Because of this, it seems inefficient because it can only be deserialized to Configuration as a string data type, like toml::from_str("bundle = { require_mode = 'path' }").unwrap().

If BundleConfiguration is exposed and accessible from external crates, it can be used like this:

let mut config = Configuration::empty();
if bundle {
    config = config.with_bundle_configuration(BundleConfiguration::new(
        BundleRequireMode::default(),
    ));
}
config = config.with_generator(GeneratorParameters::RetainLines);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions