Tpt
4705d75893
makes newer Clippy happy
8 months ago
Tpt
655ecd3e91
Convert error to thiserror
...
Co-authored-by: Yuri Astrakhan <yuriastrakhan@gmail.com>
9 months ago
Yuri Astrakhan
1e37577b71
Optimize some code, lints
...
* A few match simplifications
* Order trait impl to match trait itself
* A few unneeded parenthesis
* One dup code de-duplication with a new func
9 months ago
Yuri Astrakhan
1e4326a2c5
Optimize format performance
...
As seen in the https://rust.godbolt.org/z/Y8djWsq1P - write! macro produces significantly more code than a write_str call, so this change should have somewhat better performance. To my knowledge, a lot of ppl tried to solve this optimization in the compiler, but no luck yet, so may help compiler ourselves for now.
9 months ago
Yuri Astrakhan
18bf383701
Remove tabs from BNF comments
...
Minor cleanup on the BNF comments - get rid of tabs and align them
10 months ago
Tpt
d838d55f02
Uses nightly rustfmt on imports and comments
10 months ago
Yuri Astrakhan
5be6f55155
A few more self-fixes
...
These are a bit more questionable but still keep things cleaner a bit, at least in some cases?
Most of these were the result of `cargo clippy --fix -- -W clippy::use_self`
10 months ago
Yuri Astrakhan
405b95b4bd
Minor linting fixes
10 months ago
Yuri Astrakhan
2b8df24b8b
Use `Self::AssocName` to simplify declarations
...
To keep with DRY principle, I think it makes it a bit less redundant to reuse the Self::<associated_type_name> structure in the well known trait implementations - keeps it consistent with the trait decl too.
10 months ago
Tpt
025bd2afd2
Uses new cargo lint configuration system
11 months ago
Tpt
2a135283d5
Lints against 1.74
11 months ago
Tpt
e6d98445e6
Makes newer Clippy happy
1 year ago
Tpt
ea80c11d6e
CI: Run clippy on all targets
1 year ago
Tpt
90b7b128f2
Upgrades MSRV to 1.70
1 year ago
Tpt
3c51dd31bc
Move back MSRV to 1.67 but keep Cargo.lock to 1.70
...
Allows to build on Debian unstable while using latest dependencies
1 year ago
Tpt
555f6b8d7c
xsd:duration: properly fails when building not-serializable durations
...
P1M1D - P3D is giving 1M and -3D. This is not serializable with xsd:duration formatting
1 year ago
Tpt
1eaa77ad93
Uses new rustdoc <div class="warning"> style
1 year ago
Tpt
f10e5a40a3
Enables more Clippy lints
...
Auto-enable all Clippy lints that are not in nursery but a blacklist
1 year ago
Tpt
b06d6506cb
Fixes "let else" formatting
1 year ago
Tpt
077c1fc1a8
Improves XSD errors and code organization
1 year ago
Tpt
1e1ed65d3b
Stop assuming JS platform when compiling to wasm32-unknown-unknown
...
- Adds the "js" feature to enable JS support
- Adds the "custom-now" feature to oxsdatatypes to inject a custom "now" implementation
It is already possible for random with the getrandom "custom" feature
Issue #471
1 year ago
Tpt
98ac089984
Adds TryFrom<DayTimeDuration> to std::time::Duration
1 year ago
Tpt
001b6e07b7
Enforces "return self not must use" lint
1 year ago
Tpt
5af06e926a
Removes deprecated methods from oxsdatatypes
1 year ago
Tpt
81895cb6bc
xsd:integer: checked_div is integer division and not regular division according to XPath
1 year ago
Tpt
7c0563cb1b
XSD type structs: use by-value instead of by-ref in methods
...
They are small types
1 year ago
Tpt
f47306a4c5
Duration: ensures that the smallest supported duration can be parsed and serialized
1 year ago
Tpt
edec370f0a
Makes xsd:dateTime year parsing stricter
...
Do not allow syntaxes not allowed by the grammar
1 year ago
Tpt
5f2c9a3b92
Cleans up documentation links to RDF specifications
1 year ago
Tpt
57d39cad24
Makes Clippy happy
1 year ago
Tpt
b2d625e10e
XSD: Drops nom dependency
1 year ago
Tpt
63945638ea
XSD: Adds checked_neg operation
1 year ago
Tpt
d24461fc42
XSD: Improves arithmetic computations
...
Avoids internal overflow inside some decimal operations
2 years ago
Tpt
7175784356
Improves Clippy lint list
2 years ago
Tpt
3e0f6b5405
Applies oxigraph crate clippy lint to the complete project
2 years ago
Tpt
d587d3b2bb
xsd:decimal parsing: properly detect underflow
...
checked_div is only failing on division by 0...
2 years ago
Tpt
9729ec8ed3
Adds features annotations to docs.rs
2 years ago
Tpt
909a906d2a
XSD: Adds tests for "minimal conformance"
2 years ago
Tpt
cb2c891979
Fixes formatting of times with decimal second number lower than 10
2 years ago
Tpt
22a3c21c4e
Improves oxsdatatypes documentation
2 years ago
Tpt
f969a66d05
Uses "ParseDecimalError" naming just like "ParseFloatError"
...
Improves and simplifies tests
2 years ago
Tpt
1fa0633db3
Library: adds basic WASI support
...
Adds tests for WASM+JS and WASI to the CI
2 years ago
Tpt
719cde2eac
Implements SEP-0002 ADJUST function
...
ADJUST is now only implemented when a new timezone is given. I am not sure "" for no timezone is the best way to go.
It is behind a sep-0002 feature in spargebra and sparql-smith and enabled by default in oxigraph.
2 years ago
Tpt
3485833875
Makes Datetime.checked_sub return DayTimeDuration
...
Allows to be consistent with XPath and SPARQL 1.2 SEP 0002
This change is not replicated yet into the SPARQL evaluator to avoid a breaking change
https://www.w3.org/TR/xpath-functions/#func-subtract-dateTimes
https://github.com/w3c/sparql-12/blob/main/SEP/SEP-0002/sep-0002.md
2 years ago
Tpt
78c4e750ae
Improves TimezoneOffset API
2 years ago
Tpt
854e29ee38
Makes XSD datatypes a standalone crate
...
Allows other crates to reuse Oxigraph XSD datatypes implementation
2 years ago