finance-math 0.0.1

finance-rust is a simple common finance mathematics in rust.
Documentation

Build #2139752 2025-05-22 04:36:51

# rustc version rustc 1.89.0-nightly (bf64d66bd 2025-05-21)

# docs.rs version docsrs 0.6.0 (d8ea4838 2025-05-14)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/finance-math-0.0.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/finance-math-0.0.1/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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250521-1.89.0-nightly-bf64d66bd\", \"--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" "--config" "build.rustdocflags=[\"-Zmetrics-dir=/opt/rustwide/target/metrics\"]", kill_on_drop: false }` [INFO] [stdout] 77a2fa19e9ab7dd562e644da23b8d8930d9664f991a2b96109ed924d3115a157 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "77a2fa19e9ab7dd562e644da23b8d8930d9664f991a2b96109ed924d3115a157", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting finance-math v0.0.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `2` [INFO] [stderr] --> src/lib.rs:51:9 [INFO] [stderr] | [INFO] [stderr] 51 | /// [1][2] CAGR is not an accounting term, but it is often used to describe some element of the business, for example revenue, units deli... [INFO] [stderr] | ^ no item named `2` 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: unresolved link to `1` [INFO] [stderr] --> src/lib.rs:122:72 [INFO] [stderr] | [INFO] [stderr] 122 | /// In finance, the net present value (NPV) or net present worth (NPW)[1] is a measurement of the profitability of an undertaking that is... [INFO] [stderr] | ^ no item named `1` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `2` [INFO] [stderr] --> src/lib.rs:171:39 [INFO] [stderr] | [INFO] [stderr] 171 | /// Interest can be compared to rent.[2] Just as rent is paid to a landlord by a tenant, without the ownership of the asset being transfe... [INFO] [stderr] | ^ no item named `2` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | //! Its cloning form [http://financejs.org/] . [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] = note: `#[warn(rustdoc::bare_urls)]` on by default [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 2 | //! Its cloning form [<http://financejs.org/>] . [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:21:21 [INFO] [stderr] | [INFO] [stderr] 21 | /// see definition: https://en.wikipedia.org/wiki/Amortization_%28business%29 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 21 | /// see definition: <https://en.wikipedia.org/wiki/Amortization>_%28business%29 [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:54:21 [INFO] [stderr] | [INFO] [stderr] 54 | /// see definition: http://pages.uoregon.edu/rgp/PPPM613/class8a.htm [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 54 | /// see definition: <http://pages.uoregon.edu/rgp/PPPM613/class8a.htm> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:64:21 [INFO] [stderr] | [INFO] [stderr] 64 | /// see definition: https://en.wikipedia.org/wiki/Compound_interest [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 64 | /// see definition: <https://en.wikipedia.org/wiki/Compound_interest> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:79:21 [INFO] [stderr] | [INFO] [stderr] 79 | /// see definition: https://en.wikipedia.org/wiki/Discounting [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 79 | /// see definition: <https://en.wikipedia.org/wiki/Discounting> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:98:21 [INFO] [stderr] | [INFO] [stderr] 98 | /// see definition: https://en.wikipedia.org/wiki/Future_value [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 98 | /// see definition: <https://en.wikipedia.org/wiki/Future_value> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:106:21 [INFO] [stderr] | [INFO] [stderr] 106 | /// see definition: https://en.wikipedia.org/wiki/Internal_rate_of_return [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 106 | /// see definition: <https://en.wikipedia.org/wiki/Internal_rate_of_return> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:124:21 [INFO] [stderr] | [INFO] [stderr] 124 | /// see definition: https://en.wikipedia.org/wiki/Net_present_value [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 124 | /// see definition: <https://en.wikipedia.org/wiki/Net_present_value> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:140:21 [INFO] [stderr] | [INFO] [stderr] 140 | /// see definition: https://en.wikipedia.org/wiki/Payback_period [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 140 | /// see definition: <https://en.wikipedia.org/wiki/Payback_period> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:174:21 [INFO] [stderr] | [INFO] [stderr] 174 | /// see definition: https://en.wikipedia.org/wiki/Present_value [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 174 | /// see definition: <https://en.wikipedia.org/wiki/Present_value> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:181:21 [INFO] [stderr] | [INFO] [stderr] 181 | /// see definition: https://en.wikipedia.org/wiki/Profitability_index [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 181 | /// see definition: <https://en.wikipedia.org/wiki/Profitability_index> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:197:21 [INFO] [stderr] | [INFO] [stderr] 197 | /// see definition: https://en.wikipedia.org/wiki/Return_on_investment [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 197 | /// see definition: <https://en.wikipedia.org/wiki/Return_on_investment> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:204:21 [INFO] [stderr] | [INFO] [stderr] 204 | /// see definition: https://en.wikipedia.org/wiki/Leverage_(finance) [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 204 | /// see definition: <https://en.wikipedia.org/wiki/Leverage>_(finance) [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:211:21 [INFO] [stderr] | [INFO] [stderr] 211 | /// see definition: https://en.wikipedia.org/wiki/Rule_of_72 [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 211 | /// see definition: <https://en.wikipedia.org/wiki/Rule_of_72> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/lib.rs:220:21 [INFO] [stderr] | [INFO] [stderr] 220 | /// see definition: https://en.wikipedia.org/wiki/Weighted_average_cost_of_capital [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] help: use an automatic link instead [INFO] [stderr] | [INFO] [stderr] 220 | /// see definition: <https://en.wikipedia.org/wiki/Weighted_average_cost_of_capital> [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: `finance-math` (lib doc) generated 18 warnings (run `cargo fix --lib -p finance-math` to apply 15 suggestions) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/finance_math/index.html [INFO] running `Command { std: "docker" "inspect" "77a2fa19e9ab7dd562e644da23b8d8930d9664f991a2b96109ed924d3115a157", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "77a2fa19e9ab7dd562e644da23b8d8930d9664f991a2b96109ed924d3115a157", kill_on_drop: false }` [INFO] [stdout] 77a2fa19e9ab7dd562e644da23b8d8930d9664f991a2b96109ed924d3115a157