fix: add minimal lib.rs declarations to pass cargo check
This commit is contained in:
parent
e76f253260
commit
c8f9d64fd8
15
Cargo.lock
generated
Normal file
15
Cargo.lock
generated
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
# This file is automatically @generated by Cargo.
|
||||||
|
# It is not intended for manual editing.
|
||||||
|
version = 4
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "xtask"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zx_document_core"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "zx_document_ffi"
|
||||||
|
version = "0.1.0"
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
fn main() {
|
||||||
|
println!("zhixi-document-runtime xtask");
|
||||||
|
}
|
||||||
13
crates/zx_document_core/src/lib.rs
Normal file
13
crates/zx_document_core/src/lib.rs
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
pub mod anchors;
|
||||||
|
pub mod blocks;
|
||||||
|
pub mod document;
|
||||||
|
pub mod epub;
|
||||||
|
pub mod error;
|
||||||
|
pub mod events;
|
||||||
|
pub mod image_meta;
|
||||||
|
pub mod markdown;
|
||||||
|
pub mod material_type;
|
||||||
|
pub mod pdf;
|
||||||
|
pub mod progress;
|
||||||
|
pub mod search;
|
||||||
|
pub mod text;
|
||||||
@ -0,0 +1,2 @@
|
|||||||
|
// FFI bindings — generated by UniFFI
|
||||||
|
// See zx_document.udl for interface definitions
|
||||||
1
target/.rustc_info.json
Normal file
1
target/.rustc_info.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{"rustc_fingerprint":17101093526984691411,"outputs":{"7971740275564407648":{"success":true,"status":"","code":0,"stdout":"___\nlib___.rlib\nlib___.dylib\nlib___.dylib\nlib___.a\nlib___.dylib\n/Users/Admin1/.rustup/toolchains/stable-aarch64-apple-darwin\noff\npacked\nunpacked\n___\ndebug_assertions\npanic=\"unwind\"\nproc_macro\ntarget_abi=\"\"\ntarget_arch=\"aarch64\"\ntarget_endian=\"little\"\ntarget_env=\"\"\ntarget_family=\"unix\"\ntarget_feature=\"aes\"\ntarget_feature=\"crc\"\ntarget_feature=\"dit\"\ntarget_feature=\"dotprod\"\ntarget_feature=\"dpb\"\ntarget_feature=\"dpb2\"\ntarget_feature=\"fcma\"\ntarget_feature=\"fhm\"\ntarget_feature=\"flagm\"\ntarget_feature=\"fp16\"\ntarget_feature=\"frintts\"\ntarget_feature=\"jsconv\"\ntarget_feature=\"lor\"\ntarget_feature=\"lse\"\ntarget_feature=\"neon\"\ntarget_feature=\"paca\"\ntarget_feature=\"pacg\"\ntarget_feature=\"pan\"\ntarget_feature=\"pmuv3\"\ntarget_feature=\"ras\"\ntarget_feature=\"rcpc\"\ntarget_feature=\"rcpc2\"\ntarget_feature=\"rdm\"\ntarget_feature=\"sb\"\ntarget_feature=\"sha2\"\ntarget_feature=\"sha3\"\ntarget_feature=\"ssbs\"\ntarget_feature=\"vh\"\ntarget_has_atomic=\"128\"\ntarget_has_atomic=\"16\"\ntarget_has_atomic=\"32\"\ntarget_has_atomic=\"64\"\ntarget_has_atomic=\"8\"\ntarget_has_atomic=\"ptr\"\ntarget_os=\"macos\"\ntarget_pointer_width=\"64\"\ntarget_vendor=\"apple\"\nunix\n","stderr":""},"7184814366859257464":{"success":true,"status":"","code":0,"stdout":"rustc 1.96.0 (ac68faa20 2026-05-25)\nbinary: rustc\ncommit-hash: ac68faa20c58cbccd01ee7208bf3b6e93a7d7f96\ncommit-date: 2026-05-25\nhost: aarch64-apple-darwin\nrelease: 1.96.0\nLLVM version: 22.1.2\n","stderr":""}},"successes":{}}
|
||||||
3
target/CACHEDIR.TAG
Normal file
3
target/CACHEDIR.TAG
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Signature: 8a477f597d28d172789f06886806bc55
|
||||||
|
# This file is a cache directory tag created by cargo.
|
||||||
|
# For information about cache directory tags see https://bford.info/cachedir/
|
||||||
0
target/debug/.cargo-lock
Normal file
0
target/debug/.cargo-lock
Normal file
@ -0,0 +1 @@
|
|||||||
|
18e632a4744006b8
|
||||||
@ -0,0 +1 @@
|
|||||||
|
{"rustc":17467972547956852243,"features":"[]","declared_features":"[]","target":6928020453178500895,"profile":2330448797067240312,"path":5989365315976895888,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/xtask-67fee25ba4291621/dep-bin-xtask","checksum":false}}],"rustflags":[],"config":8247474407144887393,"compile_kind":0}
|
||||||
BIN
target/debug/.fingerprint/xtask-67fee25ba4291621/dep-bin-xtask
Normal file
BIN
target/debug/.fingerprint/xtask-67fee25ba4291621/dep-bin-xtask
Normal file
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
||||||
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
||||||
@ -0,0 +1 @@
|
|||||||
|
555ea7aeeb7d9144
|
||||||
@ -0,0 +1 @@
|
|||||||
|
{"rustc":17467972547956852243,"features":"[]","declared_features":"[]","target":6200740610988589914,"profile":2330448797067240312,"path":12518737104055435228,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/zx_document_core-5fcd77e504689579/dep-lib-zx_document_core","checksum":false}}],"rustflags":[],"config":8247474407144887393,"compile_kind":0}
|
||||||
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
{"$message_type":"diagnostic","message":"`main` function not found in crate `build_script_build`","code":{"code":"E0601","explanation":"No `main` function was found in a binary crate.\n\nTo fix this error, add a `main` function:\n\n```\nfn main() {\n // Your program will start here.\n println!(\"Hello world!\");\n}\n```\n\nIf you don't know the basics of Rust, you can look at the\n[Rust Book][rust-book] to get started.\n\n[rust-book]: https://doc.rust-lang.org/book/\n"},"level":"error","spans":[{"file_name":"crates/zx_document_ffi/build.rs","byte_start":0,"byte_end":0,"line_start":0,"line_end":0,"column_start":1,"column_end":1,"is_primary":true,"text":[],"label":null,"suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[{"message":"consider adding a `main` function to `crates/zx_document_ffi/build.rs`","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"\u001b[1m\u001b[91merror[E0601]\u001b[0m\u001b[1m: `main` function not found in crate `build_script_build`\u001b[0m\n \u001b[1m\u001b[94m|\u001b[0m\n \u001b[1m\u001b[94m= \u001b[0m\u001b[1mnote\u001b[0m: consider adding a `main` function to `crates/zx_document_ffi/build.rs`\n\n"}
|
||||||
|
{"$message_type":"diagnostic","message":"aborting due to 1 previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"\u001b[1m\u001b[91merror\u001b[0m\u001b[1m: aborting due to 1 previous error\u001b[0m\n\n"}
|
||||||
|
{"$message_type":"diagnostic","message":"For more information about this error, try `rustc --explain E0601`.","code":null,"level":"failure-note","spans":[],"children":[],"rendered":"\u001b[1mFor more information about this error, try `rustc --explain E0601`.\u001b[0m\n"}
|
||||||
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
This file has an mtime of when this was started.
|
||||||
@ -0,0 +1 @@
|
|||||||
|
2a2ff609b3ed665d
|
||||||
@ -0,0 +1 @@
|
|||||||
|
{"rustc":17467972547956852243,"features":"[]","declared_features":"[]","target":16708595495853346383,"profile":2330448797067240312,"path":16948721527265881577,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"debug/.fingerprint/zx_document_ffi-5130f2ca088d0e09/dep-lib-zx_document_ffi","checksum":false}}],"rustflags":[],"config":8247474407144887393,"compile_kind":0}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/build/zx_document_ffi-1d02c3399d2a5803/build_script_build-1d02c3399d2a5803.d: crates/zx_document_ffi/build.rs
|
||||||
|
|
||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/build/zx_document_ffi-1d02c3399d2a5803/build_script_build-1d02c3399d2a5803: crates/zx_document_ffi/build.rs
|
||||||
|
|
||||||
|
crates/zx_document_ffi/build.rs:
|
||||||
0
target/debug/deps/libxtask-67fee25ba4291621.rmeta
Normal file
0
target/debug/deps/libxtask-67fee25ba4291621.rmeta
Normal file
BIN
target/debug/deps/libzx_document_core-5fcd77e504689579.rmeta
Normal file
BIN
target/debug/deps/libzx_document_core-5fcd77e504689579.rmeta
Normal file
Binary file not shown.
BIN
target/debug/deps/libzx_document_ffi-5130f2ca088d0e09.rmeta
Normal file
BIN
target/debug/deps/libzx_document_ffi-5130f2ca088d0e09.rmeta
Normal file
Binary file not shown.
5
target/debug/deps/xtask-67fee25ba4291621.d
Normal file
5
target/debug/deps/xtask-67fee25ba4291621.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/xtask-67fee25ba4291621.d: crates/xtask/src/main.rs
|
||||||
|
|
||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/libxtask-67fee25ba4291621.rmeta: crates/xtask/src/main.rs
|
||||||
|
|
||||||
|
crates/xtask/src/main.rs:
|
||||||
18
target/debug/deps/zx_document_core-5fcd77e504689579.d
Normal file
18
target/debug/deps/zx_document_core-5fcd77e504689579.d
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/zx_document_core-5fcd77e504689579.d: crates/zx_document_core/src/lib.rs crates/zx_document_core/src/anchors.rs crates/zx_document_core/src/blocks.rs crates/zx_document_core/src/document.rs crates/zx_document_core/src/epub.rs crates/zx_document_core/src/error.rs crates/zx_document_core/src/events.rs crates/zx_document_core/src/image_meta.rs crates/zx_document_core/src/markdown.rs crates/zx_document_core/src/material_type.rs crates/zx_document_core/src/pdf.rs crates/zx_document_core/src/progress.rs crates/zx_document_core/src/search.rs crates/zx_document_core/src/text.rs
|
||||||
|
|
||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/libzx_document_core-5fcd77e504689579.rmeta: crates/zx_document_core/src/lib.rs crates/zx_document_core/src/anchors.rs crates/zx_document_core/src/blocks.rs crates/zx_document_core/src/document.rs crates/zx_document_core/src/epub.rs crates/zx_document_core/src/error.rs crates/zx_document_core/src/events.rs crates/zx_document_core/src/image_meta.rs crates/zx_document_core/src/markdown.rs crates/zx_document_core/src/material_type.rs crates/zx_document_core/src/pdf.rs crates/zx_document_core/src/progress.rs crates/zx_document_core/src/search.rs crates/zx_document_core/src/text.rs
|
||||||
|
|
||||||
|
crates/zx_document_core/src/lib.rs:
|
||||||
|
crates/zx_document_core/src/anchors.rs:
|
||||||
|
crates/zx_document_core/src/blocks.rs:
|
||||||
|
crates/zx_document_core/src/document.rs:
|
||||||
|
crates/zx_document_core/src/epub.rs:
|
||||||
|
crates/zx_document_core/src/error.rs:
|
||||||
|
crates/zx_document_core/src/events.rs:
|
||||||
|
crates/zx_document_core/src/image_meta.rs:
|
||||||
|
crates/zx_document_core/src/markdown.rs:
|
||||||
|
crates/zx_document_core/src/material_type.rs:
|
||||||
|
crates/zx_document_core/src/pdf.rs:
|
||||||
|
crates/zx_document_core/src/progress.rs:
|
||||||
|
crates/zx_document_core/src/search.rs:
|
||||||
|
crates/zx_document_core/src/text.rs:
|
||||||
5
target/debug/deps/zx_document_ffi-5130f2ca088d0e09.d
Normal file
5
target/debug/deps/zx_document_ffi-5130f2ca088d0e09.d
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/zx_document_ffi-5130f2ca088d0e09.d: crates/zx_document_ffi/src/lib.rs
|
||||||
|
|
||||||
|
/Users/Admin1/Documents/Project/zhixi-document-runtime/target/debug/deps/libzx_document_ffi-5130f2ca088d0e09.rmeta: crates/zx_document_ffi/src/lib.rs
|
||||||
|
|
||||||
|
crates/zx_document_ffi/src/lib.rs:
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user