2.0 KiB
2.0 KiB
Rustdoc Plan
Files Missing or Incomplete Rustdoc
This plan tracks public modules, structs, functions, and traits that lack comprehensive /// documentation comments. Rustdoc should cover:
- Module-level docs explaining purpose and usage.
- Public struct/enum/trait docs with fields/variants.
- Public function/method docs with params, returns, and examples.
- Error handling and edge cases where relevant.
High Priority (Core Public API)
src/services/item_service.rs: Missing docs forItemServicemethods likeget_item,save_item. Add examples for usage.src/services/async_item_service.rs:AsyncItemServiceneeds async-specific docs, including blocking task explanations.src/modes/server/common.rs:AppState,ApiResponse<T>, and query structs lack full param/return docs.src/compression_engine/mod.rs:CompressionEnginetrait needs comprehensive docs for all methods.src/filter_plugin/mod.rs:FilterPlugintrait andFilterChainneed usage examples.
Medium Priority (Utilities and Helpers)
src/common/status.rs:StatusInfoand related structs need schema docs.src/db.rs: All public functions likeopen,insert_itemneed error context and examples.src/config.rs:Settingsand sub-structs need deserialization notes.src/meta_plugin/mod.rs:MetaPlugintrait methods need more examples;process_metadata_outputslacks cases.
Low Priority (Internal/Helper)
src/services/compression_service.rs:CompressionServicemethods are simple but need brief docs.src/services/filter_service.rs:FilterServiceneeds plugin registration docs.src/modes/common.rs: Utility functions likeformat_sizeneed inline docs.
Generation Plan
- Run
cargo doc --no-depsto generate and inspect current docs. - Add
///comments to missing items. - Use
cargo doc --opento verify. - Ensure all public items are documented before release.
Commands
cargo doc --no-deps # Generate docs without deps
cargo doc --open # Open generated docs in browser