Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pack building commands into simple crate #95

Open
NikVolf opened this issue Feb 14, 2024 · 0 comments
Open

Pack building commands into simple crate #95

NikVolf opened this issue Feb 14, 2024 · 0 comments

Comments

@NikVolf
Copy link
Member

NikVolf commented Feb 14, 2024

instead of

fn main() {
gwasm_builder::build();
let manifest_dir_path = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());
let idl_file_path = manifest_dir_path.join("this-that-svc.idl");
let idl_file = File::create(idl_file_path).unwrap();
sails_idlgen::generate_serivce_idl::<ServiceMeta>(idl_file).unwrap();
}

should be this:

sails_builder::new().generate_idl().build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant