Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f0bd32450d | |||
| bb17f153de | |||
| ec8bfad390 | |||
| 8a1b13b139 |
3
.geminiignore
Normal file
3
.geminiignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
/target/
|
||||||
|
/package/
|
||||||
|
.env
|
||||||
667
Cargo.lock
generated
667
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -10,14 +10,14 @@ version = "0.1.0"
|
|||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
pgrx = "0.15.0"
|
pgrx = "0.16.1"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
lazy_static = "1.5.0"
|
lazy_static = "1.5.0"
|
||||||
boon = { path = "validator" }
|
boon = { path = "validator" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
pgrx-tests = "0.15.0"
|
pgrx-tests = "0.16.1"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["cdylib", "lib"]
|
crate-type = ["cdylib", "lib"]
|
||||||
|
|||||||
2
flow
2
flow
@ -11,7 +11,7 @@ source ./flows/rust
|
|||||||
POSTGRES_VERSION="17"
|
POSTGRES_VERSION="17"
|
||||||
POSTGRES_CONFIG_PATH="/opt/homebrew/opt/postgresql@${POSTGRES_VERSION}/bin/pg_config"
|
POSTGRES_CONFIG_PATH="/opt/homebrew/opt/postgresql@${POSTGRES_VERSION}/bin/pg_config"
|
||||||
DEPENDENCIES+=(icu4c pkg-config "postgresql@${POSTGRES_VERSION}")
|
DEPENDENCIES+=(icu4c pkg-config "postgresql@${POSTGRES_VERSION}")
|
||||||
CARGO_DEPENDENCIES=(cargo-pgrx==0.15.0)
|
CARGO_DEPENDENCIES=(cargo-pgrx==0.16.1)
|
||||||
GITEA_ORGANIZATION="cellular"
|
GITEA_ORGANIZATION="cellular"
|
||||||
GITEA_REPOSITORY="jspg"
|
GITEA_REPOSITORY="jspg"
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "boon"
|
name = "boon"
|
||||||
version = "0.6.1"
|
version = "0.6.1"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
description = "JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation"
|
description = "JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
repository = "https://github.com/santhosh-tekuri/boon"
|
repository = "https://github.com/santhosh-tekuri/boon"
|
||||||
@ -12,27 +12,27 @@ categories = ["web-programming"]
|
|||||||
exclude = [ "tests", ".github", ".gitmodules" ]
|
exclude = [ "tests", ".github", ".gitmodules" ]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
pgrx = "0.15.0"
|
pgrx = "0.16.1"
|
||||||
serde = "1"
|
serde = "1"
|
||||||
serde_json = "1"
|
serde_json = "1"
|
||||||
regex = "1.10.3"
|
regex = "1.12.2"
|
||||||
regex-syntax = "0.8.2"
|
regex-syntax = "0.8.8"
|
||||||
url = "2"
|
url = "2"
|
||||||
fluent-uri = "0.3.2"
|
fluent-uri = "0.4.1"
|
||||||
idna = "1.0"
|
idna = "1.1"
|
||||||
percent-encoding = "2"
|
percent-encoding = "2"
|
||||||
once_cell = "1"
|
once_cell = "1"
|
||||||
base64 = "0.22"
|
base64 = "0.22"
|
||||||
ahash = "0.8.3"
|
ahash = "0.8.12"
|
||||||
appendlist = "1.4"
|
appendlist = "1.4"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
pgrx-tests = "0.15.0"
|
pgrx-tests = "0.16.1"
|
||||||
serde = { version = "1.0", features = ["derive"] }
|
serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_yaml = "0.9"
|
serde_yaml = "0.9"
|
||||||
ureq = "2.12"
|
ureq = "3.1"
|
||||||
rustls = "0.23"
|
rustls = "0.23"
|
||||||
criterion = "0.5"
|
criterion = "0.7"
|
||||||
|
|
||||||
[[bench]]
|
[[bench]]
|
||||||
name = "bench"
|
name = "bench"
|
||||||
|
|||||||
@ -137,7 +137,7 @@ impl Visitor for Translator<'_> {
|
|||||||
Ast::ClassPerl(perl) => {
|
Ast::ClassPerl(perl) => {
|
||||||
self.replace_class_class(perl);
|
self.replace_class_class(perl);
|
||||||
}
|
}
|
||||||
Ast::Literal(ref literal) => {
|
Ast::Literal(literal) => {
|
||||||
if let Literal {
|
if let Literal {
|
||||||
kind: LiteralKind::Special(SpecialLiteralKind::Bell),
|
kind: LiteralKind::Special(SpecialLiteralKind::Bell),
|
||||||
..
|
..
|
||||||
|
|||||||
@ -444,8 +444,8 @@ impl Hash for HashedValue<'_> {
|
|||||||
fn hash<H: Hasher>(&self, state: &mut H) {
|
fn hash<H: Hasher>(&self, state: &mut H) {
|
||||||
match self.0 {
|
match self.0 {
|
||||||
Value::Null => state.write_u32(3_221_225_473), // chosen randomly
|
Value::Null => state.write_u32(3_221_225_473), // chosen randomly
|
||||||
Value::Bool(ref b) => b.hash(state),
|
Value::Bool(b) => b.hash(state),
|
||||||
Value::Number(ref num) => {
|
Value::Number(num) => {
|
||||||
if let Some(num) = num.as_f64() {
|
if let Some(num) = num.as_f64() {
|
||||||
num.to_bits().hash(state);
|
num.to_bits().hash(state);
|
||||||
} else if let Some(num) = num.as_u64() {
|
} else if let Some(num) = num.as_u64() {
|
||||||
@ -454,13 +454,13 @@ impl Hash for HashedValue<'_> {
|
|||||||
num.hash(state);
|
num.hash(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Value::String(ref str) => str.hash(state),
|
Value::String(str) => str.hash(state),
|
||||||
Value::Array(ref arr) => {
|
Value::Array(arr) => {
|
||||||
for item in arr {
|
for item in arr {
|
||||||
HashedValue(item).hash(state);
|
HashedValue(item).hash(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Value::Object(ref obj) => {
|
Value::Object(obj) => {
|
||||||
let mut hash = 0;
|
let mut hash = 0;
|
||||||
for (pname, pvalue) in obj {
|
for (pname, pvalue) in obj {
|
||||||
// We have no way of building a new hasher of type `H`, so we
|
// We have no way of building a new hasher of type `H`, so we
|
||||||
|
|||||||
Reference in New Issue
Block a user