The public API of syntect includes types defined in other crates. This makes it tricky to bump dependencies within a minor syntect release since bumping a dependency can change the syntect public API in incompatible ways.
It would be nice if we for syntect 6.0.0 could go over the public API and remove external types from the public API.
The public API of syntect includes types defined in other crates. This makes it tricky to bump dependencies within a minor syntect release since bumping a dependency can change the syntect public API in incompatible ways.
It would be nice if we for syntect 6.0.0 could go over the public API and remove external types from the public API.
See https://github.com/trishume/syntect/pull/513 for why we want to do this.
How to find inappropriate types in the current public API
Adding
to Cargo.toml (see https://doc.rust-lang.org/cargo/reference/unstable.html#public-dependency) and building with Rust nightly currently gives these warnings:
output
``` warning: type `bincode::ErrorKind` from private dependency 'bincode' in public interface --> src/dumps.rs:45:1 | 45 | pub fn dump_to_writer