Skip to content

Commit

Permalink
[Swift] Make Decimal192 standard number available for release (#210)
Browse files Browse the repository at this point in the history
* move Decimal192 number definitions outside if DEBUG

* moving to Swiftified extension

---------

Co-authored-by: Alexander Cyon <[email protected]>
  • Loading branch information
matiasbzurovski and CyonAlexRDX authored Sep 6, 2024
1 parent f4772a7 commit 9c874a3
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,5 @@ import SargonUniFFI
extension Decimal192 {
public static let sample: Self = 123456789
public static let sampleOther: Self = Self.max

public static let one: Self = 1
public static let two: Self = 2
public static let three: Self = 3
public static let four: Self = 4
public static let five: Self = 5
public static let six: Self = 6
public static let seven: Self = 7
public static let eight: Self = 8
public static let nine: Self = 9
public static let ten: Self = 10
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ extension Decimal192: ExpressibleByIntegerLiteral {
}
}


extension Decimal192: Comparable {
public static func > (lhs: Self, rhs: Self) -> Bool {
lhs.greaterThan(other: rhs)
Expand Down Expand Up @@ -102,3 +101,16 @@ extension Decimal192: Codable {
try self.init(string)
}
}

extension Decimal192 {
public static let one: Self = 1
public static let two: Self = 2
public static let three: Self = 3
public static let four: Self = 4
public static let five: Self = 5
public static let six: Self = 6
public static let seven: Self = 7
public static let eight: Self = 8
public static let nine: Self = 9
public static let ten: Self = 10
}
2 changes: 1 addition & 1 deletion crates/sargon/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sargon"
version = "1.1.11"
version = "1.1.12"
edition = "2021"
build = "build.rs"

Expand Down

0 comments on commit 9c874a3

Please sign in to comment.