GREsau / schemars

Generate JSON Schema documents from Rust code
https://graham.cool/schemars/
MIT License
820 stars 227 forks source link

Add `no_std` support via disabling the new default feature `std` #319

Closed GREsau closed 2 months ago

GREsau commented 2 months ago

Implements #254

Using schemars without std can be done by configuring it like this:

schemars = { version = "1.0.0-alpha.5", default-features = false, features = ["derive"] }

...where the derive feature can also be removed if you don't need to derive(JsonSchema), of course.

Note that schemars always requires alloc - this cannot be disabled.