Skip to content

Commit e92c56b

Browse files
committed
Update
1 parent 1976a3a commit e92c56b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+11196
-2
lines changed

.DS_Store

6 KB
Binary file not shown.

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ Cargo.lock
1212

1313
# MSVC Windows builds of rustc generate these, which store debugging information
1414
*.pdb
15+
/target
16+
17+
*.DS_Store

.rustfmt.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
max_width = 80
2+
tab_spaces = 2
3+
edition = "2021"

Cargo.toml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[workspace]
2+
resolver = "2"
3+
members = [
4+
"rs_lib",
5+
]
6+
7+
[profile.release]
8+
codegen-units = 1
9+
incremental = true
10+
lto = true
11+
opt-level = "z"

README.md

+22-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
1-
# dinance
2-
Finance module in Deno & Rust
1+
# DINANCE
2+
3+
Finance module for Deno in Rust & WASM
4+
5+
Not fully implemented
6+
7+
:warning: Bench results show that Rust is **much slower** than Deno function
8+
9+
Inspired / come from
10+
- https://github.com/ebradyjobory/finance.js
11+
- https://github.com/Anexen/pyxirr
12+
13+
## Command
14+
15+
For usage & examples
16+
`deno run --allow-read examples/mod.ts`
17+
18+
For test
19+
`deno test --allow-read examples/mod_test.ts`
20+
21+
For bench
22+
`deno bench --allow-read examples/bench.ts`

deno.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"tasks": {
3+
"wasmbuild": "deno run -A https://deno.land/x/[email protected]/main.ts"
4+
}
5+
}
6+

deno.lock

+127
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/.DS_Store

6 KB
Binary file not shown.

docs/_config.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: Rust-powered collection of financial functions for Deno
2+
title: null

docs/_includes/head.html

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<script type="text/x-mathjax-config">
2+
MathJax.Hub.Config({
3+
jax: ["input/TeX", "output/HTML-CSS"],
4+
tex2jax: {
5+
//inlineMath: [ ['$', '$'], ["\\(", "\\)"] ],
6+
displayMath: [ ['$$', '$$'], ["\\[", "\\]"] ],
7+
processEscapes: true,
8+
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
9+
}
10+
});
11+
</script>
12+
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>

0 commit comments

Comments
 (0)