Skip to content

Commit

Permalink
Display warning when building dynamic library
Browse files Browse the repository at this point in the history
Closes #36
  • Loading branch information
antoniusnaumann committed Dec 20, 2023
1 parent 2274fd7 commit 3462179
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/package.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ fn run_for_crate(
.filter_map(|t| t.parse().ok())
.collect::<Vec<_>>();
let lib_type = pick_lib_type(&lib_types, lib_type_arg.clone().into(), config)?;
warning!(&config, "Building as dynamic library is discouraged. It might prevent apps that use this library from publishing to the App Store.");

let crate_name = current_crate.name.to_lowercase();
let package_name =
Expand Down

0 comments on commit 3462179

Please sign in to comment.