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
106 changes: 50 additions & 56 deletions Cargo.lock

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

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
members = [
"wp_api",
"wp_contextual",
"wp_networking",
"wp_uniffi_bindgen",
]
resolver = "2"
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ docs:
cp -r target/doc/static.files docs/static.files
cp -r target/doc/wp_api docs/wp_api
cp -r target/doc/wp_contextual docs/wp_contextual
cp -r target/doc/wp_networking docs/wp_networking

docs-archive: docs
tar -czvf docs.tar.gz docs
Expand Down Expand Up @@ -84,7 +83,7 @@ xcframework-libraries:
# Xcode doesn't properly support multiple XCFrameworks being used by the same target, so we need
# to combine the binaries
%-combine-libraries:
xcrun libtool -static -o target/$*/release/libwordpress.a target/$*/release/libwp_api.a #target/$*/release/libwp_networking.a
xcrun libtool -static -o target/$*/release/libwordpress.a target/$*/release/libwp_api.a

# Some libraries need to be created in a multi-binary format, so we combine them here
xcframework-combined-libraries: xcframework-libraries
Expand Down
7 changes: 7 additions & 0 deletions wp_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ uniffi = { workspace = true }
wp_contextual = { path = "../wp_contextual" }

[dev-dependencies]
chrono = { version = "0.4" }
futures = "0.3"
reqwest = "0.12"
rstest = { workspace = true }
rstest_reuse = { workspace = true }
serde_json = { workspace = true }
sqlx = { version = "0.7", features = [ "chrono", "mysql", "runtime-tokio", "tls-native-tls" ]}
tokio = { version = "1.37", features = [ "full" ] }

[build-dependencies]
uniffi = { workspace = true , features = [ "build", "cli" ] }
2 changes: 1 addition & 1 deletion wp_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub mod url;
pub mod users;

#[cfg(test)]
mod test_helpers;
mod unit_test_common;

const CONTENT_TYPE_JSON: &str = "application/json";

Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ pub struct PluginDescription {
#[cfg(test)]
mod tests {
use super::*;
use crate::{generate, test_helpers::assert_expected_query_pairs};
use crate::{generate, unit_test_common::assert_expected_query_pairs};
use rstest::*;

#[rstest]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wp_api/src/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ impl SparseField for SparseUserField {
#[cfg(test)]
mod tests {
use super::*;
use crate::{generate, test_helpers::assert_expected_query_pairs};
use crate::{generate, unit_test_common::assert_expected_query_pairs};
use rstest::*;

#[rstest]
Expand Down
Loading