From acd79cd1eec03f559e97bae8702179b519d25712 Mon Sep 17 00:00:00 2001 From: Micah Johnston Date: Mon, 8 Jan 2024 21:32:07 -0600 Subject: [PATCH] cargo-coupler bundle: organization --- cargo-coupler/src/main.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cargo-coupler/src/main.rs b/cargo-coupler/src/main.rs index 333e667..43814fb 100644 --- a/cargo-coupler/src/main.rs +++ b/cargo-coupler/src/main.rs @@ -171,6 +171,16 @@ struct PackageInfo { formats: Vec, } +fn main() { + let Cargo::Coupler(cmd) = Cargo::parse(); + + match cmd { + Coupler::Bundle(cmd) => { + bundle(&cmd); + } + } +} + fn bundle(cmd: &Bundle) { // Query `rustc` for host target if no --target argument was given @@ -613,13 +623,3 @@ fn macos_bundle_info(package_info: &PackageInfo, bundle_path: &Path) { fs::write(bundle_path.join("Contents/Info.plist"), plist).unwrap(); fs::write(bundle_path.join("Contents/PkgInfo"), "BNDL????").unwrap(); } - -fn main() { - let Cargo::Coupler(cmd) = Cargo::parse(); - - match cmd { - Coupler::Bundle(cmd) => { - bundle(&cmd); - } - } -}