elastic / elasticsearch-rs

Official Elasticsearch Rust Client
https://www.elastic.co/guide/en/elasticsearch/client/rust-api/current/index.html
Apache License 2.0
695 stars 70 forks source link

Generate beta and experimental APIs, guarded by Cargo features #161

Closed swallez closed 3 years ago

swallez commented 3 years ago

Generates all APIs, including beta and experimental. Non-stable APIs are guarded by new Cargo features beta-apis and experimental-apis (which also includes beta).

This allows applications to only have access to stable APIs (as previously) by default, and opt-in for unstable APIs, at their own risk since they can change in subsequent releases.

This also fixes the yaml-test-runner that relies on the tasks apis that were previously incorrectly marked as stable and are now experimental.

swallez commented 3 years ago

Thanks for the review @russcam. All good points, I'll work on this, and also on the yaml tests that keep failing ;-)

swallez commented 3 years ago

@russcam I have addressed all your suggestions. Can you please cross-check?

~There are still some failing yaml tests that I need to investigate, but this is unrelated to those changes~