##// END OF EJS Templates
typing: attempt to remove @overloads in the platform module for stdlib methods...
typing: attempt to remove @overloads in the platform module for stdlib methods This is mostly successful, as examining util.pyi, posix.pyi, and windows.pyi after a pytype run shows that the type overloads for `oslink`, `readlink`, `removedirs`, `rename`, `split`, and `unlink` have been removed. (Some of these still have an @overload, but the differences are the variable names, not the types.) However, @overloads remain for `abspath` and `normpath` for some reason. It's useful to redefine these methods for the type checking phase because in addition to excluding str and PathLike variants, some of these functions have optional args in stdlib that aren't implemented in the custom implementation on Windows, and we want the type checking to flag that instead of assuming it's an allowable overload everywhere. One last quirk I noticed that I can't explain- `pycompat.TYPE_CHECKING` is always False, so the conditionals need to check `typing.TYPE_CHECKING` directly. I tried dropping the custom code for assigning `pycompat.TYPE_CHECKING` and simply did `from typing import TYPE_CHECKING` directly in pycompat.py, and used `pycompat.TYPE_CHECKING` for the conditional here... and pytype complained that `pycompat` doesn't have the `TYPE_CHECKING` variable.

File last commit:

r50532:9726deed default
r50713:3fd5824f default
Show More
Cargo.toml
52 lines | 1.3 KiB | application/toml | TOMLLexer
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307 [package]
name = "hg-core"
version = "0.1.0"
authors = ["Georges Racinet <gracinet@anybox.fr>"]
description = "Mercurial pure Rust core library, with no assumption on Python bindings (FFI)"
Raphaël Gomès
rust: move all crates in the main workspace to edition 2021...
r50524 edition = "2021"
Georges Racinet
rust: pure Rust lazyancestors iterator...
r40307
[lib]
name = "hg"
Georges Racinet
rust: translated random test of missingancestors...
r41841
Raphaël Gomès
rust-dirstate: add rust implementation of `parse_dirstate` and `pack_dirstate`...
r42488 [dependencies]
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 bitflags = "1.3.2"
bytes-cast = "0.2.0"
byteorder = "1.4.3"
derive_more = "0.99.17"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 hashbrown = { version = "0.13.1", features = ["rayon"] }
home = "0.5.4"
im-rc = "15.1.0"
itertools = "0.10.5"
Raphaël Gomès
rust: update all dependencies...
r45090 lazy_static = "1.4.0"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 libc = "0.2.137"
ouroboros = "0.15.5"
rand = "0.8.5"
Martin von Zweigbergk
rust: upgrade `rand*` crates...
r49403 rand_pcg = "0.3.1"
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 rand_distr = "0.4.3"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 rayon = "1.5.3"
regex = "1.7.0"
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 sha-1 = "0.10.0"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 twox-hash = "1.6.3"
Raphaël Gomès
rust-utils: add util for canonical path...
r44783 same-file = "1.0.6"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 tempfile = "3.3.0"
Raphaël Gomès
rust: create wrapper struct to reduce `regex` contention issues...
r50476 thread_local = "1.1.4"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 crossbeam-channel = "0.5.6"
Mads Kiilerich
rust: bump to memmap2 0.5.3, micro-timer 0.4.0, and crossbeam-channel 0.5.0...
r50312 micro-timer = "0.4.0"
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 log = "0.4.17"
memmap2 = { version = "0.5.8", features = ["stable_deref_trait"] }
Raphaël Gomès
hg-core: upgrade `zstd` dependency...
r50530 zstd = "0.11.2"
Simon Sapin
rust: Upgrade to format-bytes 0.3...
r49323 format-bytes = "0.3.0"
Raphaël Gomès
rust: create wrapper struct to reduce `regex` contention issues...
r50476 # once_cell 1.15 uses edition 2021, while the heptapod CI
Arseniy Alekseyev
dirstate-v2: skip evaluation of hgignore regex on cached directories...
r50415 # uses an old version of Cargo that doesn't support it.
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 once_cell = "1.16.0"
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097
Raphaël Gomès
rust: update minimum supported Rust compiler version...
r46189 # We don't use the `miniz-oxide` backend to not change rhg benchmarks and until
# we have a clearer view of which backend is the fastest.
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097 [dependencies.flate2]
Raphaël Gomès
hg-core: upgrade all remaining dependencies...
r50532 version = "1.0.24"
Antoine Cezar
hg-core: Add a limited read only `revlog` implementation...
r46097 features = ["zlib"]
default-features = false
Raphaël Gomès
rust-pathauditor: add Rust implementation of the `pathauditor`...
r44737
[dev-dependencies]
Raphaël Gomès
hg-core: upgrade `clap` dependency...
r50531 clap = { version = "4.0.24", features = ["derive"] }
Raphaël Gomès
rust-hg-core: upgrade dependencies...
r49808 pretty_assertions = "1.1.0"