Skip to content

Commit

Permalink
Merge pull request #8 from n0-computer/release-v0.0.6
Browse files Browse the repository at this point in the history
Release v0.0.6
  • Loading branch information
b5 authored Aug 29, 2023
2 parents 9dd0282 + 3d4a24a commit 7a7c4be
Show file tree
Hide file tree
Showing 9 changed files with 411 additions and 131 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

# v0.0.6 (2023-08-28)

Initial Release, mainly to test package consumption flow across different platforms. Only a subset of the [commands api](https://iroh.computer/docs/commands) is supported.


### Features

* add 'set_log_level' to control iroh logging from other languages ([125f279](https://github.com/n0-computer/iroh-ffi/commit/125f2790daa1af3fb85a4535255c107c395d3105))
* add minimal setup for python bindings ([620ce4f](https://github.com/n0-computer/iroh-ffi/commit/620ce4fac04f4a84e604c7390ef0690bee59b9f0))
48 changes: 27 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ anyhow = "1.0.69"
blake3 = "1.3.3"
bytes = "1"
data-encoding = { version = "2.3.3" }
iroh = { version = "0.5.1", default-features = false, features = ["mem-db", "iroh-collection", "flat-db"] }
iroh = { version = "0.6.0-alpha.0", default-features = false, features = ["mem-db", "iroh-collection", "flat-db"] }
iroh-io = { version = "0.2.1" }
libc = "0.2.141"
multibase = { version = "0.9.1"}
Expand All @@ -48,6 +48,5 @@ tracing-subscriber = { version = "0.3.17" }
uniffi = { version = "0.24.3", features = ["build"] }

[patch.crates-io]
iroh = { git = "https://github.com/n0-computer/iroh", branch = "main" }
# https://github.com/mullvad/system-configuration-rs/pull/42
system-configuration = { git = "https://github.com/tmpfs/system-configuration-rs", branch = "ios-hack" }
39 changes: 33 additions & 6 deletions Iroh.xcframework/ios-arm64/Iroh.framework/Headers/irohFFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,33 @@ void*_Nonnull uniffi_iroh_fn_method_doc_share_read(void*_Nonnull ptr, RustCallSt
);
void*_Nonnull uniffi_iroh_fn_method_doc_set_bytes(void*_Nonnull ptr, void*_Nonnull author, RustBuffer key, RustBuffer value, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull entry, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull hash, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_latest(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_subscribe(void*_Nonnull ptr, uint64_t cb, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_stop_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_status(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_authorid(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_authorid_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_signedentry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_entry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_entry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_entry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_signedentry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void*_Nonnull uniffi_iroh_fn_method_entry_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_signedentry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_bytes(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_docticket(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -166,14 +178,29 @@ uint16_t uniffi_iroh_checksum_method_doc_latest(void
);
uint16_t uniffi_iroh_checksum_method_doc_subscribe(void

);
uint16_t uniffi_iroh_checksum_method_doc_stop_sync(void

);
uint16_t uniffi_iroh_checksum_method_doc_status(void

);
uint16_t uniffi_iroh_checksum_method_authorid_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_author(void
uint16_t uniffi_iroh_checksum_method_entry_author(void

);
uint16_t uniffi_iroh_checksum_method_entry_key(void

);
uint16_t uniffi_iroh_checksum_method_entry_hash(void

);
uint16_t uniffi_iroh_checksum_method_hash_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_key(void
uint16_t uniffi_iroh_checksum_method_hash_to_bytes(void

);
uint16_t uniffi_iroh_checksum_method_docticket_to_string(void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,21 +94,33 @@ void*_Nonnull uniffi_iroh_fn_method_doc_share_read(void*_Nonnull ptr, RustCallSt
);
void*_Nonnull uniffi_iroh_fn_method_doc_set_bytes(void*_Nonnull ptr, void*_Nonnull author, RustBuffer key, RustBuffer value, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull entry, RustCallStatus *_Nonnull out_status
RustBuffer uniffi_iroh_fn_method_doc_get_content_bytes(void*_Nonnull ptr, void*_Nonnull hash, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_latest(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_subscribe(void*_Nonnull ptr, uint64_t cb, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_method_doc_stop_sync(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_doc_status(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_authorid(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_authorid_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_signedentry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_entry(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_entry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_entry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void*_Nonnull uniffi_iroh_fn_method_signedentry_author(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void*_Nonnull uniffi_iroh_fn_method_entry_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_signedentry_key(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
void uniffi_iroh_fn_free_hash(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_string(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
RustBuffer uniffi_iroh_fn_method_hash_to_bytes(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
void uniffi_iroh_fn_free_docticket(void*_Nonnull ptr, RustCallStatus *_Nonnull out_status
);
Expand Down Expand Up @@ -166,14 +178,29 @@ uint16_t uniffi_iroh_checksum_method_doc_latest(void
);
uint16_t uniffi_iroh_checksum_method_doc_subscribe(void

);
uint16_t uniffi_iroh_checksum_method_doc_stop_sync(void

);
uint16_t uniffi_iroh_checksum_method_doc_status(void

);
uint16_t uniffi_iroh_checksum_method_authorid_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_author(void
uint16_t uniffi_iroh_checksum_method_entry_author(void

);
uint16_t uniffi_iroh_checksum_method_entry_key(void

);
uint16_t uniffi_iroh_checksum_method_entry_hash(void

);
uint16_t uniffi_iroh_checksum_method_hash_to_string(void

);
uint16_t uniffi_iroh_checksum_method_signedentry_key(void
uint16_t uniffi_iroh_checksum_method_hash_to_bytes(void

);
uint16_t uniffi_iroh_checksum_method_docticket_to_string(void
Expand Down
Loading

0 comments on commit 7a7c4be

Please sign in to comment.