Comments (8)
Rust 1.73 is missing some features. MSRV can be lowered to 1.75, but not below. See #1315
from pydantic-core.
I think 1.73 would still be reachable but it'd be a lot more work.
from pydantic-core.
The hint here is already in your build output:
(/private/var/folders/_n/8qwtj23j0tx0bdy7ftvpg63m0000gn/T/pip-install-a3iwsm3w/pydantic-core_1e29f10ace204ee99125b93a432e3171)` cannot be built because it requires rustc 1.76 or newer, while the currently active rustc version is 1.72.1
If you update your Rust compiler (probably with rustup update
) and retry, it should work.
from pydantic-core.
@davidhewitt Unfortunately, starting from Rust 1.74, the minimum supported macOS platform is macOS 10.12 (see here), so the latest Rust compiler supporting OS X 10.11 is Rust 1.73. I tried installing the latest Rust using the standalone installer, but that did not work.
If pydantic
chooses to drop support for macOS < 10.12 (Python 3 still supports far back to macOS 10.9), it would be better to explicitly state that in the doc.
from pydantic-core.
That's a great point. I think we should consider downgrading our minimum Rust to 1.73, but this may not be trivial.
from pydantic-core.
^ reflecting on the above, I think downgrading is the right thing, but I think the reality is that extending support backwards to old macOS versions is not a high priority for me right now. If anyone is interested in helping downgrade, a PR is very welcome.
from pydantic-core.
Could you please give some hints about how to contribute on this specific downgrading issue?
from pydantic-core.
The idea would be that you can check the compile against Rust 1.73 (for example) by running cargo +1.73 check
in this directory.
Or you could set the rust-version
in Cargo.toml
to 1.73 and push a PR, which will run the checks on the pipeline here.
I expect that there are a couple of language features and stdlib APIs which we use which will need replacing. If it's not clear how to replace them, perhaps post back here with examples and I can give suggestions.
from pydantic-core.
Related Issues (20)
- Worst case validation performance scales with the number of pydantic objects in memory HOT 4
- Unable to build Pydantic-Core 2.16.3 on Alpine 3.19 HOT 3
- Datetime underflow causes validation to fail HOT 1
- Different behavior for `extra_behavior` and `config.extra_fields_behavior`
- Add support for simple ser schema with `any` (`lambda x: x` replacement)
- Strict bug :( with config vs runtime flag
- False-positive `SchemaError` for keyword-only args: Non-default argument follows default argument
- 2.18.0: pep517 based build fails HOT 15
- `serialization` logic not regognized in `json` and `python` schemas at lower levels
- Make `validate_json` accept `memoryview`. HOT 1
- [BUG] Serializing datetime.time loses timezone data when datetime.datetime is reqired for utc offset because of DST HOT 1
- generate_self_schema.py incompatible with Python 3.13.0b1 HOT 3
- Unexpected behavior for Partial=True HOT 2
- UUID validators with custom string object HOT 1
- 2.18.2: pytest fails in 3 units HOT 7
- Recursive serialization of UUID seems to fail json.dumps HOT 1
- Lower MSRV to 1.75
- `include` and `exclude` are not passed to field serializer contexts in function serializer HOT 1
- fail-fast list schema configuration
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pydantic-core.