mirror of
https://github.com/nab138/isideload.git
synced 2026-03-02 14:36:16 +01:00
Add example project
This commit is contained in:
7
Cargo.lock
generated
7
Cargo.lock
generated
@@ -187,6 +187,13 @@ version = "2.7.6"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "minimal"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"isideload",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "num-conv"
|
name = "num-conv"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
resolver = "2"
|
resolver = "2"
|
||||||
members = ["isideload"]
|
members = ["examples/minimal","isideload"]
|
||||||
default-members = ["isideload"]
|
default-members = ["isideload"]
|
||||||
1
examples/minimal/.gitignore
vendored
Normal file
1
examples/minimal/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
/target
|
||||||
7
examples/minimal/Cargo.toml
Normal file
7
examples/minimal/Cargo.toml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[package]
|
||||||
|
name = "minimal"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
isideload = { path = "../../isideload" }
|
||||||
3
examples/minimal/src/main.rs
Normal file
3
examples/minimal/src/main.rs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
isideload::test();
|
||||||
|
}
|
||||||
0
isideload/src/auth/mod.rs
Normal file
0
isideload/src/auth/mod.rs
Normal file
@@ -1,6 +1,12 @@
|
|||||||
use idevice::plist;
|
pub mod auth;
|
||||||
use plist::Value;
|
|
||||||
|
|
||||||
pub fn test() -> Value {
|
use idevice::{plist, pretty_print_plist};
|
||||||
plist!("value")
|
|
||||||
|
pub fn test() -> () {
|
||||||
|
println!(
|
||||||
|
"{}",
|
||||||
|
pretty_print_plist(&plist!({
|
||||||
|
"code": "hello"
|
||||||
|
}))
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user