third party: Upgrade
rustc_hashSummary: To 2.1
Unfortunately, I can’t remove the old version of the crate. The problem is that it appears in the public API of
tiktoken_rs, which we also import. That crate has a PR to upgrade its dependency here but that has not been merged. Alternatives here are:
- Fork
tiktoken_rs. This seems worse.- It’s strictly speaking possible to use generics combined with some other tricks to avoid needing to name v1 of
FxHashMapin fbsource. However, that makes that code extraordinarily hard to change and work with, and doesn’t seem all that clearly motivated.If there’s something else I should be doing here, all ears
Reviewed By: zertosh
Differential Revision: D68064854
fbshipit-source-id: bd1c96abbc0ebaa178a55826bc85c61eb35e8301
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Errpy: An Error Recovering Rust Python Parser
This is a new project to provide an error-recovering Python parser, implemented in Rust based on tree-sitter. Our short-term goal is to use it in the pyre type checker, in order to provide better IDE features.
License
Errpy is licensed under the MIT license.
Building
Errpy depends upon the following:
Platform
ERRPY is verified as being buildable on Linux on OCaml 4.14.0
Installing Ocaml and Dune
Install
opamand runopam switch install "4.14.0"Usage
It is recommended to use dune as your build system. To use errpy in your dune project, you can add errpy to the libraries stanza in your dune file. For example,
For local development
If you want to test your changes to errpy locally and use them in another OCaml project (.e.g. Pyre) you can try the following,
First clone the repo with:
$ git clone https://github.com/facebook/errpy.gitOr use
$ git clone --branch release https://github.com/facebook/errpy.gitif you’re operating within anofflinerust enviroment.Formatting
When making Ocaml changes you can run
ocamlformatin order to ensure code is formatted in a conistent manner. This is invoked as follows: