Mercurial > hg
view rust/hg-cpython/Cargo.toml @ 42067:b01bbb8ff1f2
cext: make revlog.c PY_SSIZE_T_CLEAN
Without this, Python 3.8 emits a deprecation warning, as using
int for # values is deprecated. Many existing modules use
PY_SSIZE_T_CLEAN, so this shouldn't be contentious.
I audited the file for all # formatters and verified we are
using Py_ssize_t everywhere now.
Differential Revision: https://phab.mercurial-scm.org/D6196
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Thu, 04 Apr 2019 15:18:06 -0700 |
parents | 4277e20cfec4 |
children | 326fdce22fb2 |
line wrap: on
line source
[package] name = "hg-cpython" version = "0.1.0" authors = ["Georges Racinet <gracinet@anybox.fr>"] [lib] name='rusthg' crate-type = ["cdylib"] [features] default = ["python27"] python27 = ["cpython/python27-sys", "cpython/extension-module-2-7", "python27-sys", ] python3 = ["python3-sys", "cpython/python3-sys", "cpython/extension-module"] [dependencies] hg-core = { path = "../hg-core" } libc = '*' [dependencies.cpython] version = "*" default-features = false [dependencies.python27-sys] version = "0.2.1" optional = true [dependencies.python3-sys] version = "0.2.1" optional = true