Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ let package = Package(
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "Starknet",
type: .static,
targets: ["Starknet"]
),
.library(
name: "StarknetDynamic",
type: .dynamic,
targets: ["Starknet"]
),
],
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ dependencies: [
Then add `starknet.swift` to the dependencies array of every target you want to use the package in.
```

### Choosing the Right Product

The package offers two library products:

- `Starknet` – statically linked variant. Prefer this when you control the final app binary and want to avoid extra runtime bundles.
- `StarknetDynamic` – dynamically linked variant. Use this for SwiftUI previews or any build pipeline that performs aggressive dead-symbol stripping.

If you rely on SwiftUI previews or hit missing native symbol errors (`_generate_k`, `_Sign`, etc.), switch the dependency in your target to `StarknetDynamic`.

## Documentation
You can find the documentation of the project [here](https://docs.swmansion.com/starknet.swift/documentation/starknet/).

Expand Down
Loading