finance-solution 0.0.0

A library for finance time-value-of-money functions with detailed solutions and pretty-printed tables.
Documentation

Build #2174243 2025-05-30 19:41:50

# rustc version rustc 1.89.0-nightly (1bbd62e54 2025-05-29)

# docs.rs version docsrs 0.6.0 (d2911047 2025-05-28)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/finance-solution-0.0.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/finance-solution-0.0.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: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\", \"-20250529-1.89.0-nightly-1bbd62e54\", \"--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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d80cd344c3fd8b1ee149aa57ad1a949d529d4829aa0ea992117a977b2aba0b4f [INFO] running `Command { std: "docker" "start" "-a" "d80cd344c3fd8b1ee149aa57ad1a949d529d4829aa0ea992117a977b2aba0b4f", kill_on_drop: false }` [INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: common_word_problems [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] Documenting finance-solution v0.0.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unresolved link to `present_value_annuity_schedule` [INFO] [stderr] --> src/cashflow/future_value_annuity.rs:165:90 [INFO] [stderr] | [INFO] [stderr] 165 | /// * To calculate a future value with a varying rate or varying cashflow or both, use [`present_value_annuity_schedule`]. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `present_value_annuity_schedule` 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 `present_value_annuity_schedule` [INFO] [stderr] --> src/cashflow/present_value_annuity.rs:186:91 [INFO] [stderr] | [INFO] [stderr] 186 | /// * To calculate a present value with a varying rate or varying cashflow or both, use [`present_value_annuity_schedule`]. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no item named `present_value_annuity_schedule` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `TvmSchedule` [INFO] [stderr] --> src/cashflow/net_present_value.rs:521:75 [INFO] [stderr] | [INFO] [stderr] 521 | /// [`TvmSolution`] every period will have the same rate. If it's a [`TvmSchedule`] each period [INFO] [stderr] | ^^^^^^^^^^^ no item named `TvmSchedule` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `TvmSchedule` [INFO] [stderr] --> src/tvm/mod.rs:24:80 [INFO] [stderr] | [INFO] [stderr] 24 | /// Enumeration used for the `calculated_field` field in [`TvmSolution`] and [`TvmSchedule`] to keep [INFO] [stderr] | ^^^^^^^^^^^ no item named `TvmSchedule` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `TvmSchedule` [INFO] [stderr] --> src/tvm/mod.rs:70:17 [INFO] [stderr] | [INFO] [stderr] 70 | /// * Part of [`TvmSchedule`] produced by calling [`present_value_schedule`] or [INFO] [stderr] | ^^^^^^^^^^^ no item named `TvmSchedule` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: unresolved link to `TvmSchedule` [INFO] [stderr] --> src/tvm/mod.rs:877:75 [INFO] [stderr] | [INFO] [stderr] 877 | /// [`TvmSolution`] every period will have the same rate. If it's a [`TvmSchedule`] each period [INFO] [stderr] | ^^^^^^^^^^^ no item named `TvmSchedule` in scope [INFO] [stderr] | [INFO] [stderr] = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]` [INFO] [stderr] [INFO] [stderr] warning: Rust code block is empty [INFO] [stderr] --> src/lib.rs:59:5 [INFO] [stderr] | [INFO] [stderr] 59 | //! ``` [INFO] [stderr] | _____^ [INFO] [stderr] 60 | | //! // period payments_to_date payments_remaining principal principal_to_date principal_remaining interest interest_to_date inter... [INFO] [stderr] 61 | | //! // ------ ---------------- ------------------ --------- ----------------- ------------------- -------- ---------------- -----... [INFO] [stderr] 62 | | //! // 1 -119.6361 -1_076.7248 -85.6361 -85.6361 -914.3639 -34.0000 -34.0000 ... [INFO] [stderr] ... | [INFO] [stderr] 71 | | //! // 10 -1_196.3609 -0.0000 -115.7022 -999.0000 -0.0000 -3.9339 -196.3609 ... [INFO] [stderr] 72 | | //! ``` [INFO] [stderr] | |_______^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default [INFO] [stderr] help: mark blocks that do not contain Rust code as text [INFO] [stderr] | [INFO] [stderr] 59 | //! ```text [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: unclosed HTML tag `f64` [INFO] [stderr] --> src/cashflow/net_present_value.rs:357:22 [INFO] [stderr] | [INFO] [stderr] 357 | /// Returns a Vec<f64> of the cashflows. [INFO] [stderr] | ^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(rustdoc::invalid_html_tags)]` on by default [INFO] [stderr] help: try marking as source code [INFO] [stderr] | [INFO] [stderr] 357 | /// Returns a `Vec<f64>` of the cashflows. [INFO] [stderr] | + + [INFO] [stderr] [INFO] [stderr] warning: `present_value_annuity` is both a function and a module [INFO] [stderr] --> src/cashflow/future_value_annuity.rs:164:59 [INFO] [stderr] | [INFO] [stderr] 164 | /// * To calculate a future value returning an f64, use [`present_value_annuity`]. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 164 | /// * To calculate a future value returning an f64, use [`present_value_annuity()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 164 | /// * To calculate a future value returning an f64, use [`mod@present_value_annuity`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `payment` is both a function and a module [INFO] [stderr] --> src/cashflow/payment.rs:196:35 [INFO] [stderr] | [INFO] [stderr] 196 | /// An amortized loan. Uses [`payment`]. [INFO] [stderr] | ^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 196 | /// An amortized loan. Uses [`payment()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 196 | /// An amortized loan. Uses [`mod@payment`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `present_value_annuity` is both a function and a module [INFO] [stderr] --> src/cashflow/present_value_annuity.rs:185:60 [INFO] [stderr] | [INFO] [stderr] 185 | /// * To calculate a present value returning an f64, use [`present_value_annuity`]. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 185 | /// * To calculate a present value returning an f64, use [`present_value_annuity()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 185 | /// * To calculate a present value returning an f64, use [`mod@present_value_annuity`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `future_value` is both a function and a module [INFO] [stderr] --> src/tvm/future_value.rs:178:77 [INFO] [stderr] | [INFO] [stderr] 178 | /// * For simply calculating a single future value using a fixed rate use [`future_value`]. [INFO] [stderr] | ^^^^^^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 178 | /// * For simply calculating a single future value using a fixed rate use [`future_value()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 178 | /// * For simply calculating a single future value using a fixed rate use [`mod@future_value`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `future_value` is both a function and a module [INFO] [stderr] --> src/tvm/future_value.rs:277:45 [INFO] [stderr] | [INFO] [stderr] 277 | /// * If there is a single fixed rate use [`future_value`] or [`future_value_solution`]. [INFO] [stderr] | ^^^^^^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 277 | /// * If there is a single fixed rate use [`future_value()`] or [`future_value_solution`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 277 | /// * If there is a single fixed rate use [`mod@future_value`] or [`future_value_solution`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `future_value` is both a function and a module [INFO] [stderr] --> src/tvm/future_value.rs:332:77 [INFO] [stderr] | [INFO] [stderr] 332 | /// * For simply calculating a single future value using a fixed rate use [`future_value`]. [INFO] [stderr] | ^^^^^^^^^^^^ ambiguous link [INFO] [stderr] | [INFO] [stderr] help: to link to the function, add parentheses [INFO] [stderr] | [INFO] [stderr] 332 | /// * For simply calculating a single future value using a fixed rate use [`future_value()`]. [INFO] [stderr] | ++ [INFO] [stderr] help: to link to the module, prefix with `mod@` [INFO] [stderr] | [INFO] [stderr] 332 | /// * For simply calculating a single future value using a fixed rate use [`mod@future_value`]. [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `finance-solution` (lib doc) generated 14 warnings (run `cargo fix --lib -p finance-solution` to apply 1 suggestion) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.57s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/finance_solution/index.html [INFO] running `Command { std: "docker" "inspect" "d80cd344c3fd8b1ee149aa57ad1a949d529d4829aa0ea992117a977b2aba0b4f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d80cd344c3fd8b1ee149aa57ad1a949d529d4829aa0ea992117a977b2aba0b4f", kill_on_drop: false }` [INFO] [stdout] d80cd344c3fd8b1ee149aa57ad1a949d529d4829aa0ea992117a977b2aba0b4f