Skip to content

Commit

Permalink
ISSUE: macos aarch64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
007harshmahajan committed Jul 1, 2024
1 parent 5da50bc commit 70bfccf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bip39 = {version = "1.0.1", features = ["rand"] }
bitcoin = {version = "0.32", features = ["rand"] }
bip39 = { version = "1.0.1", features = ["rand"] }
bitcoin = { version = "0.32", features = ["rand"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_cbor = "0.11.2"
Expand All @@ -19,17 +19,18 @@ dirs = "3.0.1"
tokio-socks = "0.5"
clap = { version = "3.2.22", features = ["derive"] }
bitcoind = "0.36"
libtor = {version = "47.13.0", optional = true}
mitosis = {version = "0.1.1", optional = true}
libtor = { version = "47.13.0", optional = true }
mitosis = { version = "0.1.1", optional = true }
log4rs = "1.3.0"

openssl-sys = { version = "0.9.68", optional = true }

#Empty default feature set, (helpful to generalise in github actions)
[features]
default = ['tor']
# Mac OS needs to use the vendored version of openssl-sys as upstream `libtor` is not updated for to support mac os aarch (M series)
build-macos-aarch = ["openssl-sys/vendored"]
# The following feature set is in response to the issue described at https://github.com/rust-lang/rust/issues/45599
# Only used for running the integration tests
integration-test = []
# Only used for running the tor
tor = ['dep:libtor','dep:mitosis']

tor = ['dep:libtor', 'dep:mitosis']
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ Teleport Transactions is a rust implementation of a variant of atomic-swap proto
* [Developer's resources](/docs/dev-book.md)

## Build and Test
Macos (M series) needs some feature for compilation

```console
$ cargo build --target=aarch64-apple-darwin --features=build-macos-aarch
```

The repo contains a fully automated integration testing framework on Bitcoin Regtest. The bitcoin binary used for testing is
included [here](./bin/bitcoind).
Expand Down

0 comments on commit 70bfccf

Please sign in to comment.