Valentin Gosu
868719da3f
Merge pull request #734 from andrewbanchich/fix-set-host
...
Fix setting file hosts to `None`
2022-09-07 09:12:56 +02:00
Andrew Banchich
eb3f20d7e4
Fix setting file hosts to None
2022-09-06 18:18:28 -04:00
Aaron O'Mullan
6e5df8fe3b
perf(idna): fast-path simple/ascii domains ( #761 )
...
* perf(idna): fast-path simple/ascii domains
* ci
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2022-09-06 14:16:07 +02:00
Valentin Gosu
1d307ae51a
Merge pull request #787 from jiftoo/query-pairs-patch
...
fix unclosed doctest
2022-08-23 15:12:51 +02:00
Dan Kov
4c5e4ee826
fix unclosed doctest
2022-08-23 15:53:25 +03:00
Valentin Gosu
490f218ba0
Merge pull request #783 from ridwanabdillahi/natvis
...
Add Natvis visualizations for the `Url` type
2022-08-18 22:25:10 +02:00
Ridwan Abdilahi
435c0ca2ee
Update natvis type definitions after latest changes to debuginfo type names in the Rust compiler.
2022-08-18 11:17:48 -07:00
ridwanabdillahi
0de12fbd9d
Add Natvis definitions for url types and create tests to ensure visualizations do not become stale or broken.
...
Add a README for documenting how the debugger visualizers and how to embed/ test them.
Update the github actions CI workflow to manually enable features, in addition to the default features, to allow for testing unstable features separately.
Cleanup running tests with the serde feature enabled.
Update documentation noting the debugger_visualizer crate feature is an unstable feature.
Respond to PR comments. Fix unused variables warnings.
Fix lint errors
Enable features via `member:feature` syntax.
2022-08-17 10:08:02 -07:00
Valentin Gosu
d6b4cda3d8
Merge pull request #786 from ridwanabdillahi/fix_build_break
...
Update the minimum rust-version to 1.51 to fix Rust 1.45.0 CI failure
2022-08-17 09:37:37 +02:00
Ridwan Abdilahi
275baaef86
Fix lint errors.
2022-08-16 14:49:47 -07:00
Ridwan Abdilahi
6353d50086
Update the minimum rust-version to 1.51 to fix a build break on the 1.45 CI pipeline due to an update of dependencies that now require the cargo resolver
feature to be stablized.
2022-08-16 11:02:12 -07:00
Valentin Gosu
a72f83d002
Merge pull request #781
...
Fix lint warnings.
Add env CARGO_NET_GIT_FETCH_WITH_CLI=true to avoid CI failure for rust 1.45.0 build.
2022-07-28 17:10:06 +02:00
Valentin Gosu
0eb962d2bb
Fix env
2022-07-28 16:25:22 +02:00
Valentin Gosu
31f6d5b9d8
The rust 1.45.0 build fails with
...
```
Updating crates.io index
error: failed to get `serde` as a dependency of package `url v2.2.2 (/home/icecold/workspace/rust-url/url)`
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index `
Caused by:
error reading from the zlib stream; class=Zlib (5)
```
Fixed by `CARGO_NET_GIT_FETCH_WITH_CLI=true cargo build --all-targets`
According to https://github.com/rust-lang/cargo/issues/10303
2022-07-28 16:19:36 +02:00
Valentin Gosu
1060c59c67
Fix fmt
2022-07-28 08:57:34 +02:00
Valentin Gosu
f1c7924abc
Fix clippy::format-push-string
2022-07-19 22:14:04 +02:00
Valentin Gosu
193ffaa8c9
Fix clippy::let-unit-value
2022-07-19 22:06:41 +02:00
Valentin Gosu
70539f267e
Create SECURITY.md
...
Closes #778
2022-07-11 18:31:06 +02:00
Valentin Gosu
e12d76a61a
Merge pull request #754 from dsherret/make_relative_include_filename_other_directory
...
fix: make_relative missing filename when filenames equal in both urls
2022-06-10 22:18:25 +02:00
Valentin Gosu
91f01bd3d2
Merge pull request #760 from AaronO/perf/url-parse-avoid-trivial-reallocs
...
perf(url): avoid trivial reallocs
2022-05-04 23:02:21 +02:00
Valentin Gosu
cbc6a6d9a1
Fix clippy lint ( #765 )
...
* Fix clippy lint
2022-04-28 23:13:12 +02:00
Valentin Gosu
bc95f50bb6
Merge pull request #757 from atouchet/lic
...
Update Readme and use SPDX license format
2022-04-28 22:54:52 +02:00
Aaron O'Mullan
519bbb5b3a
perf(url): avoid trivial reallocs
2022-04-01 21:25:11 +02:00
Alex Touchet
338b54f66d
Update Readme and use SPDX license format
2022-02-24 19:51:54 -08:00
Valentin Gosu
48fcbe1c54
Merge pull request #755 from notriddle/notriddle/matches
...
Remove dependency on third-party matches crate
2022-02-16 22:55:36 +01:00
Michael Howell
fd62d12d9d
Fix formatting
2022-02-16 13:54:47 -07:00
Michael Howell
033ba91a78
Fix pattern syntax for rustc 1.45
2022-02-16 13:50:19 -07:00
Michael Howell
34f4fbe4bc
Remove dependency on third-party matches crate
...
Now that the MSRV is 1.45, this macro can be assumed to exist, since it
was introduced in 1.42.
2022-02-16 13:46:34 -07:00
David Sherret
aee91c171e
fix: make_relative was missing filename when filenames were equal in another directory
2022-02-09 15:10:52 -05:00
Valentin Gosu
8e3e91daaf
Merge pull request #753 from lucacasonato/ipv4_parsing_fix
...
Align IPv4 parsing to spec
2022-01-31 22:11:38 +01:00
Valentin Gosu
0c7a07f748
Merge pull request #749 from lucacasonato/mime_parser_fix
...
Align mime type parser to spec
2022-01-31 22:10:54 +01:00
Luca Casonato
d40c4f1d6a
Align IPv4 parsing to spec
...
This commit aligns the IPv4 parsing steps to spec and adds the relevant
WPT tests.
2022-01-31 17:35:12 +01:00
Valentin Gosu
6275b41e56
Merge pull request #752 from crowlKats/fix_testdata_runner
...
fix testdata runner
2022-01-31 17:22:22 +01:00
crowlkats
a18a2a3c2b
Merge branch 'master' into fix_testdata_runner
2022-01-31 17:12:02 +01:00
Luca Casonato
8d72494c82
Align mime type parser to spec
...
The most notable two changes are:
a) the parser now uses html whitespace instead of ascii whitespace
b) the parser now correctly handles empty quoted values
The commit additionally fixes a bug in the parser that would fail
parsing if an invalid name was encountered and its corresponding value
contained a quoted semicolon.
2022-01-31 16:46:18 +01:00
Valentin Gosu
c34de27990
Merge pull request #748 from lucacasonato/use_tester_not_rustc_test
...
Use `tester` instead of `rustc-test`
2022-01-31 16:38:24 +01:00
Luca Casonato
26f5371450
remove codecov token (not needed)
2022-01-31 16:10:06 +01:00
Luca Casonato
92305d628a
Use tester
instead of rustc-test
...
This commit switches the test library used by idna/tests and
data-url/tests to `tester`. Just like `rustc-test` this is a fork of
the `test` crate inside of `rustc`, but it is much more up to date.
`cargo deny` and `cargo tarpaulin` are both now not complaining anymore.
2022-01-31 16:10:06 +01:00
Valentin Gosu
474560dee7
Merge pull request #750 from lucacasonato/bump_msrv
...
Update Rust MSRV to 1.45
2022-01-31 16:07:56 +01:00
Luca Casonato
52d736e0ac
Update Rust MSRV to 1.45
2022-01-31 15:53:50 +01:00
crowlkats
887d908365
Merge branch 'master' into fix_testdata_runner
...
# Conflicts:
# url/src/host.rs
2022-01-31 13:19:12 +01:00
Valentin Gosu
38c8e9ddf4
Merge pull request #751 from crowlKats/whatwg/url#589
...
Forbid | in URL hosts
2022-01-31 11:31:21 +01:00
crowlkats
3dc30d18eb
fmt
2022-01-28 18:46:52 +01:00
crowlkats
74e0cfbd2f
fmt
2022-01-28 18:46:26 +01:00
crowlkats
3118b46232
fix testdata runner
2022-01-28 18:25:40 +01:00
crowlkats
f0d1c7ea22
Forbid | in URL hosts
2022-01-28 18:06:54 +01:00
Valentin Gosu
fc76310aeb
Merge pull request #747 from crowlKats/whatwg/url#685
...
add all C0 controls and add U+007F to is_invalid_domain_char
2022-01-28 17:12:59 +01:00
Valentin Gosu
bd150e3e0c
Merge pull request #744 from lucacasonato/fix_clippy
...
Appease clippy
2022-01-28 16:11:05 +01:00
crowlkats
8f23a1d38e
update testdata commit
2022-01-28 14:12:11 +01:00
crowlkats
4af988e482
add all C0 controls and add U+007F to is_invalid_domain_char
2022-01-28 14:09:20 +01:00