Skip to content

Commit 1840e69

Browse files
committed
Merge remote-tracking branch 'upstream/master' into auto-lower-number
2 parents 7806754 + 64504c7 commit 1840e69

12 files changed

Lines changed: 868 additions & 594 deletions

File tree

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

factorion-bot-discord/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-bot-discord"
3-
version = "2.4.1"
3+
version = "2.5.1"
44
edition = "2024"
55
description = "factorion-bot (for factorials and related) on Discord"
66
license = "MIT"
@@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math", "discord"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-lib = { path = "../factorion-lib", version = "4.4.1", features = ["serde", "influxdb"] }
13+
factorion-lib = { path = "../factorion-lib", version = "5.0.1", features = ["serde", "influxdb"] }
1414
serenity = { version = "0.12", default-features = false, features = ["client", "gateway", "rustls_backend", "model", "cache"] }
1515
tokio = { version = "1.48.0", features = ["macros", "rt-multi-thread", "time"] }
1616
dotenvy = "^0.15.7"

factorion-bot-reddit/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-bot-reddit"
3-
version = "5.5.1"
3+
version = "5.6.1"
44
edition = "2024"
55
description = "factorion-bot (for factorials and related) on Reddit"
66
license = "MIT"
@@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-lib = {path = "../factorion-lib", version = "4.4.1", features = ["serde", "influxdb"]}
13+
factorion-lib = {path = "../factorion-lib", version = "5.0.1", features = ["serde", "influxdb"]}
1414
reqwest = { version = "0.12.28", features = ["json", "native-tls"], default-features = false }
1515
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
1616
serde_json = "1.0.140"

factorion-lib/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "factorion-lib"
3-
version = "4.4.1"
3+
version = "5.0.1"
44
edition = "2024"
55
description = "A library used to create bots to recognize and calculate factorials and related concepts"
66
license = "MIT"
@@ -10,7 +10,7 @@ keywords = ["factorial", "termial", "bot", "math"]
1010
categories = ["mathematics", "web-programming", "parser-implementations"]
1111

1212
[dependencies]
13-
factorion-math = {path = "../factorion-math", version = "1.0"}
13+
factorion-math = {path = "../factorion-math", version = "1.0.2"}
1414
serde = {version = "1.0", features = ["derive"], optional = true}
1515
serde_json = {version = "1.0", optional = true}
1616
concat-idents = "1.1.4"

factorion-lib/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ assert_eq!(reply, "Hey @you!\n\nTermial of factorial of 5 is 7260 \n\n\n*^(This
2929
```
3030
Or manually do the steps:
3131
```rust
32-
use factorion_lib::{parse::parse, calculation_tasks::{CalculationJob, CalculationBase}, calculation_results::{Calculation, CalculationResult, Number}, Consts};
32+
use factorion_lib::{parse::parse, calculation_tasks::{CalculationJob, CalculationBase}, calculation_results::{Calculation, CalculationResult, Number, FormatOptions}, Consts};
3333

3434
// You need to define constants first
3535
let consts = Consts::default();
@@ -61,6 +61,6 @@ assert_eq!(results, [
6161
let result = results.remove(0);
6262
let mut formatted = String::new();
6363
// Write the formatted result to a string (for efficiency). We don't want to shorten anything below that huge number
64-
result.format(&mut formatted, false, false, &10000000000000000000u128.into(), &consts, &locale.format()).unwrap();
64+
result.format(&mut formatted, FormatOptions::NONE, &10000000000000000000u128.into(), &consts, &locale.format()).unwrap();
6565
assert_eq!(formatted, "Factorial of 4 is 24 \n\n");
6666
```

0 commit comments

Comments
 (0)