diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 701f4b90..0d41aa3b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,11 @@ jobs: make -j CFLAGS="-m32" LDFLAGS="-m32" make install_sw echo "OPENSSL_DIR=/tmp/openssl/install/" >> $GITHUB_ENV + - uses: taiki-e/install-action@v2 + with: + tool: taplo-cli + - name: Format Toml + run: taplo fmt --check - name: Check uses: actions-rs/cargo@v1 with: diff --git a/.taplo.toml b/.taplo.toml new file mode 100644 index 00000000..d8a04c55 --- /dev/null +++ b/.taplo.toml @@ -0,0 +1,4 @@ +[[rule]] + +[rule.formatting] +indent_string = " " diff --git a/Cargo.toml b/Cargo.toml index 58cc75ca..285817bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,16 +22,14 @@ members = [ ] # We miss our linux_no_std example from the default members since `cargo check` # and `cargo test` both attempt to link the `std` library into it in error. -default-members = [ - "frida-gum-sys", - "frida-gum", - "frida-sys", - "frida", -] +default-members = ["frida-gum-sys", "frida-gum", "frida-sys", "frida"] [workspace.package] version = "0.13.7" -authors = ["Keegan Saunders ", "Shmarya Rubenstein "] +authors = [ + "Keegan Saunders ", + "Shmarya Rubenstein ", +] edition = "2021" license = "wxWindows" repository = "https://github.com/frida/frida-rust" diff --git a/examples/core/console_log/Cargo.toml b/examples/core/console_log/Cargo.toml index f454e8cf..5cf6f511 100644 --- a/examples/core/console_log/Cargo.toml +++ b/examples/core/console_log/Cargo.toml @@ -7,4 +7,4 @@ publish = false [dependencies] frida = { path = "../../../frida" } -lazy_static = "1.4" \ No newline at end of file +lazy_static = "1.4" diff --git a/examples/gum/debug_symbol/Cargo.toml b/examples/gum/debug_symbol/Cargo.toml index 9dbedfba..d71a63c2 100644 --- a/examples/gum/debug_symbol/Cargo.toml +++ b/examples/gum/debug_symbol/Cargo.toml @@ -6,5 +6,5 @@ edition = "2018" license = "MIT" [dependencies] -frida-gum = { path = "../../../frida-gum", features = ["invocation-listener"]} +frida-gum = { path = "../../../frida-gum", features = ["invocation-listener"] } lazy_static = "1.4" diff --git a/examples/gum/hook_instruction/Cargo.toml b/examples/gum/hook_instruction/Cargo.toml index 2e51994f..531e9503 100644 --- a/examples/gum/hook_instruction/Cargo.toml +++ b/examples/gum/hook_instruction/Cargo.toml @@ -9,6 +9,6 @@ license = "MIT" crate-type = ["cdylib"] [dependencies] -frida-gum = { path = "../../../frida-gum", features = ["invocation-listener"]} +frida-gum = { path = "../../../frida-gum", features = ["invocation-listener"] } lazy_static = "1.4" ctor = "0.2" diff --git a/examples/gum/hook_open/Cargo.toml b/examples/gum/hook_open/Cargo.toml index ff776033..f4cffe9c 100644 --- a/examples/gum/hook_open/Cargo.toml +++ b/examples/gum/hook_open/Cargo.toml @@ -9,7 +9,7 @@ license = "MIT" crate-type = ["cdylib"] [dependencies] -frida-gum = { path = "../../../frida-gum"} +frida-gum = { path = "../../../frida-gum" } lazy_static = "1.4" ctor = "0.2" libc = "0.2.126" diff --git a/examples/gum/linux_no_std/Cargo.toml b/examples/gum/linux_no_std/Cargo.toml index db973a11..7f29657f 100644 --- a/examples/gum/linux_no_std/Cargo.toml +++ b/examples/gum/linux_no_std/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" license = "MIT" [dependencies] -frida-gum = { path = "../../../frida-gum"} +frida-gum = { path = "../../../frida-gum" } libc = { version = "0.2.153", default-features = false } libc-print = { version = "0.1.22", default-features = false } static-alloc = { version = "0.2.5", default-features = false } diff --git a/examples/gum/stalker/Cargo.toml b/examples/gum/stalker/Cargo.toml index 0ea8d9dd..6a781ab7 100644 --- a/examples/gum/stalker/Cargo.toml +++ b/examples/gum/stalker/Cargo.toml @@ -7,6 +7,9 @@ license = "wxWindows" publish = false [dependencies] -frida-gum = { path = "../../../frida-gum", features = ["event-sink", "invocation-listener"] } +frida-gum = { path = "../../../frida-gum", features = [ + "event-sink", + "invocation-listener", +] } frida-gum-sys = { path = "../../../frida-gum-sys" } lazy_static = "1.4" diff --git a/examples/gum/stalker_observer/Cargo.toml b/examples/gum/stalker_observer/Cargo.toml index 3041f898..f24874eb 100644 --- a/examples/gum/stalker_observer/Cargo.toml +++ b/examples/gum/stalker_observer/Cargo.toml @@ -7,6 +7,11 @@ license = "wxWindows" publish = false [dependencies] -frida-gum = { path = "../../../frida-gum", features = ["event-sink", "invocation-listener", "stalker-observer", "stalker-params"] } +frida-gum = { path = "../../../frida-gum", features = [ + "event-sink", + "invocation-listener", + "stalker-observer", + "stalker-params", +] } frida-gum-sys = { path = "../../../frida-gum-sys" } lazy_static = "1.4" diff --git a/frida-build/Cargo.toml b/frida-build/Cargo.toml index 2b5dde07..6b42094c 100644 --- a/frida-build/Cargo.toml +++ b/frida-build/Cargo.toml @@ -8,6 +8,9 @@ repository.workspace = true description.workspace = true [dependencies] -reqwest = { version = "0.12.2", default-features=false, features = ["blocking", "rustls-tls"] } +reqwest = { version = "0.12.2", default-features = false, features = [ + "blocking", + "rustls-tls", +] } tar = "0.4.40" xz = "0.1.0" diff --git a/frida-gum/Cargo.toml b/frida-gum/Cargo.toml index 7ee8187c..7ec4d6ab 100644 --- a/frida-gum/Cargo.toml +++ b/frida-gum/Cargo.toml @@ -19,7 +19,9 @@ stalker-params = ["frida-gum-sys/stalker-params"] std = [] [dependencies] -cstr_core = { version = "0.2.6", default-features = false, features = ["alloc"] } +cstr_core = { version = "0.2.6", default-features = false, features = [ + "alloc", +] } frida-gum-sys = { path = "../frida-gum-sys", version = "0.13.7" } libc = { version = "0.2.153", default-features = false, optional = true } num = { version = "0.4.1", default-features = false } @@ -34,4 +36,10 @@ lazy_static = "1" maintenance = { status = "experimental" } [package.metadata.docs.rs] -features = ["event-sink", "invocation-listener", "stalker-observer", "stalker-params", "std"] +features = [ + "event-sink", + "invocation-listener", + "stalker-observer", + "stalker-params", + "std", +]