Skip to content

Releases: antoniusnaumann/cargo-swift

v0.7.1

25 Apr 18:25
Compare
Choose a tag to compare

What's Changed

New Contributors

Thanks for your contributions :)

Full Changelog: v0.7.0...v0.7.1

v0.7.0

29 Mar 22:57
ddbdbcc
Compare
Choose a tag to compare
  • Support UniFFI 0.27

Full Changelog: v0.6.1...v0.7.0

v0.6.1

18 Feb 21:51
Compare
Choose a tag to compare

What's new

  • Bugfix: Deprecation warning for dynamic libraries was shown even when building a static library. This has been fixed in this release.

Full Changelog: v0.6.0...v0.6.1

v0.6.0

03 Feb 22:28
Compare
Choose a tag to compare

What's Changed

  • Fix "ambigious name" for console. Thanks @bisgardo ! in #47
  • Update to UniFFI 0.26

Full Changelog: v0.5.1...v0.6.0

v0.5.1

22 Dec 00:36
Compare
Choose a tag to compare

What's Changed

  • Convert dashes in lib_name to hyphens, contributed by @flisky in #41
  • Introduce argument to skip toolchain check with rustup, contributed by @Eliot00 in #42

New Contributors

  • @flisky made their first contribution in #41
  • @Eliot00 made their first contribution in #42
    Thank you for your contributions!

Full Changelog: v0.5.0...v0.5.1

v0.5.0

03 Nov 00:30
Compare
Choose a tag to compare

What's Changed

0.5.0

  • Allow running cargo swift package in crates that only use uniffi macros - thanks to @martinmose for testing this
  • Add --macro flag to cargo swift init to generate a project without .udl files that uses only uniffi macros
  • Switch to static lib by default as there is an issue with app store publishing for dynamic libs - thanks to @martinmose for pointing this out
  • Silence XCode warnings in generated Swift package code - thanks to @martinmose for providing this solution
  • Properly return an error exit code when an error occured

TODO: Rest of Changelog

Full Changelog: v0.4.0...v0.5.0

v0.4.0

13 Aug 14:49
Compare
Choose a tag to compare

What's Changed

0.4.0

This is a small release, mainly to update to the newest UniFFI version (and hence considered a breaking change) and fix a bug related to cargo workspaces.

  • Update to UniFFI 0.24.3
  • Invoking cargo swift package in a crate that is part of a workspace now works properly

Full Changelog: v0.3.1...v0.4.0

v0.3.1

02 Aug 15:55
Compare
Choose a tag to compare

What's Changed

0.3.1

This release brings options to choose if the library should be built as dynamic or static library and fixes a bug related to dynamic libraries. Happy building!

  • Add option to specify library type to both init and package command
  • Infer the library type from the crate types given in Cargo.toml if no library type was specified explicitly
  • Display UniFFI error log as discussed in #21, thanks to @dylanowen for providing a suggested fix
  • Fix a bug (#20) where the @rpath is not set correctly for dynamic libraries, thanks again to @dylanowen for pointing this out

Full Changelog: v0.3.0...v0.3.1

0.3.0

With this release, cargo swift uses Mozilla's UniFFI for generating Swift bindings. This will allow users of cargo swift to generate bindings to other languages supported by UniFFI from the same codebase!

  • Migrate to UniFFI
  • Add --plain flag to init command to generate a new project without example code
  • Show errors from failed build steps in package command
  • Improve error messages

0.3.0

08 Apr 15:44
Compare
Choose a tag to compare

What's Changed

0.3.0

With this release, cargo swift uses Mozilla's UniFFI for generating Swift bindings. This will allow users of cargo swift to generate bindings to other languages supported by UniFFI from the same codebase!

  • Migrate to UniFFI
  • Add --plain flag to init command to generate a new project without example code
  • Show errors from failed build steps in package command
  • Improve error messages

Full Changelog: v0.2.2...v0.3.0

0.2.2

16 Feb 18:47
Compare
Choose a tag to compare

What's Changed

0.2.2

  • Introduce --release flag to build packages with optimizations for release mode
  • Skip initializing a new git repository if parent directory is already contained in a git repository
  • Add --vcs argument [options: git (default), none] to allow skipping git repository creation

0.2.1

  • Fix a bug that caused the toolchain installation prompts to ignore --accept-all flags.

0.2.0

This release adds support for downloading toolchains for target platforms on demand. It also makes the tool more CI-friendly by adding an option to skip prompts and accept the given default if no corresponding argument was given.

Note: This release promotes the version to 0.2.0, because it adds a prompt to the package command in case no toolchains are installed which could be unexpected.

  • Prompt user to download required target toolchains in #9
  • Add flag to skip all prompts in #10

Full Changelog: v0.2.1...v0.2.2