OPA conformance (#81)

- Switch to scientific crate. Large values are printed in scientific notations.
  Regular values are printed as u64, i64 or f64.
- Skip copying commit hooks in git worktrees
- urlquery.decode, urlquery.encode, urlquery.encode_object
- substring, indexof_n string builtins
- Make sprintf more OPA conformant

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2023-12-30 08:36:15 -08:00
committed by GitHub
parent e549882b07
commit 84bedda1c6
7 changed files with 359 additions and 186 deletions
+2 -3
View File
@@ -43,17 +43,16 @@ md-5 = {version = "0.10.6", optional = true}
data-encoding = { version = "2.4.0", optional = true }
jsonschema = { version = "0.17.1", optional = true }
scientific = { version = "0.5.2" }
regex = {version = "1.10.2", optional = true}
semver = {version = "1.0.20", optional = true}
wax = { version = "0.6.0", features = [], default-features = false, optional = true }
url = { version = "2.5.0", optional = true }
dashu-float = { version = "0.4.1", features = ["num-traits"] }
num-traits = "0.2.17"
dashu-base = "0.4.0"
uuid = { version = "1.6.1", features = ["v4", "fast-rng"], optional = true }
[dev-dependencies]
clap = { version = "4.4.7", features = ["derive"] }
colored-diff = "0.2.3"