libsimple 0.3.0

Rust bindings to simple, a SQLite3 fts5 tokenizer which supports Chinese and PinYin.
Documentation
Build #1225080 2024-05-20 15:02:50

# rustc version rustc 1.80.0-nightly (d84b90375 2024-05-19)

# docs.rs version docsrs 0.6.0 (2d4f32bd 2024-05-19)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/libsimple-0.3.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/libsimple-0.3.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20240519-1.80.0-nightly-d84b90375\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5806da6e3d1e3125fdcb83541defbde7c24f4e80230f40755c7eb55e88778476 [INFO] running `Command { std: "docker" "start" "-a" "5806da6e3d1e3125fdcb83541defbde7c24f4e80230f40755c7eb55e88778476", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: hello [INFO] [stderr] If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true` [INFO] [stderr] to the [[example]] target configuration of at least one example. [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:387:1: warning: "/*" within comment [-Wcomment] [INFO] [stderr] warning: libsimple@0.3.0: 387 | /* adapt from snippet [INFO] [stderr] warning: libsimple@0.3.0: | [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:388:1: warning: "/*" within comment [-Wcomment] [INFO] [stderr] warning: libsimple@0.3.0: 388 | /* [INFO] [stderr] warning: libsimple@0.3.0: | [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc: In function 'int fts5HighlightCb(void*, int, const char*, int, int, int)': [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:156:40: warning: unused parameter 'pToken' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 156 | const char *pToken, /* Buffer containing token */ [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~^~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:157:32: warning: unused parameter 'nToken' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 157 | int nToken, /* Size of token in bytes */ [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~^~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc: In function 'int fts5HighlightPosCb(void*, int, const char*, int, int, int)': [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:301:43: warning: unused parameter 'pToken' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 301 | const char *pToken, /* Buffer containing token */ [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~^~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: simple/src/simple_highlight.cc:302:35: warning: unused parameter 'nToken' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 302 | int nToken, /* Size of token in bytes */ [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~^~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/DictTrie.hpp:16, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:8, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp: In member function 'void cppjieba::Trie::DeleteNode(const Unicode&, const cppjieba::DictUnit*)': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp:144:55: warning: unused parameter 'ptValue' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 144 | void DeleteNode(const Unicode& key, const DictUnit* ptValue) { [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~^~~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/MixSegment.hpp:5, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:11, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp: In member function 'void cppjieba::MPSegment::CutByDag(limonp::LocalVector<cppjieba::RuneStr>::const_iterator, limonp::LocalVector<cppjieba::RuneStr>::const_iterator, const std::vector<cppjieba::Dag>&, std::vector<cppjieba::WordRange>&) const': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp:110:38: warning: unused parameter 'end' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 110 | RuneStrArray::const_iterator end, [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/DictTrie.hpp:16, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:8, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.cc:1: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp: In member function 'void cppjieba::Trie::DeleteNode(const Unicode&, const cppjieba::DictUnit*)': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp:144:55: warning: unused parameter 'ptValue' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 144 | void DeleteNode(const Unicode& key, const DictUnit* ptValue) { [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~^~~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/MixSegment.hpp:5, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:11, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.cc:1: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp: In member function 'void cppjieba::MPSegment::CutByDag(limonp::LocalVector<cppjieba::RuneStr>::const_iterator, limonp::LocalVector<cppjieba::RuneStr>::const_iterator, const std::vector<cppjieba::Dag>&, std::vector<cppjieba::WordRange>&) const': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp:110:38: warning: unused parameter 'end' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 110 | RuneStrArray::const_iterator end, [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/DictTrie.hpp:16, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:8, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/entry.cc:2: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp: In member function 'void cppjieba::Trie::DeleteNode(const Unicode&, const cppjieba::DictUnit*)': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/Trie.hpp:144:55: warning: unused parameter 'ptValue' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 144 | void DeleteNode(const Unicode& key, const DictUnit* ptValue) { [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~^~~~~~~ [INFO] [stderr] warning: libsimple@0.3.0: In file included from cppjieba/include/cppjieba/MixSegment.hpp:5, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/QuerySegment.hpp:11, [INFO] [stderr] warning: libsimple@0.3.0: from cppjieba/include/cppjieba/Jieba.hpp:4, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/simple_tokenizer.h:7, [INFO] [stderr] warning: libsimple@0.3.0: from simple/src/entry.cc:2: [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp: In member function 'void cppjieba::MPSegment::CutByDag(limonp::LocalVector<cppjieba::RuneStr>::const_iterator, limonp::LocalVector<cppjieba::RuneStr>::const_iterator, const std::vector<cppjieba::Dag>&, std::vector<cppjieba::WordRange>&) const': [INFO] [stderr] warning: libsimple@0.3.0: cppjieba/include/cppjieba/MPSegment.hpp:110:38: warning: unused parameter 'end' [-Wunused-parameter] [INFO] [stderr] warning: libsimple@0.3.0: 110 | RuneStrArray::const_iterator end, [INFO] [stderr] warning: libsimple@0.3.0: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ [INFO] [stderr] Documenting libsimple v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `LICENSE` [INFO] [stderr] --> src/../README.md:56:39 [INFO] [stderr] | [INFO] [stderr] 56 | Licensed under MIT license ([LICENSE](LICENSE) or <http://opensource.org/licenses/MIT>) [INFO] [stderr] | ^^^^^^^ no item named `LICENSE` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `libsimple` (lib doc) generated 1 warning [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.45s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/libsimple/index.html [INFO] running `Command { std: "docker" "inspect" "5806da6e3d1e3125fdcb83541defbde7c24f4e80230f40755c7eb55e88778476", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5806da6e3d1e3125fdcb83541defbde7c24f4e80230f40755c7eb55e88778476", kill_on_drop: false }` [INFO] [stdout] 5806da6e3d1e3125fdcb83541defbde7c24f4e80230f40755c7eb55e88778476