All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.7.1 - 2024-08-15
- Improved error spans for import errors (#80)
0.7.0 - 2024-07-08
- Updated to prost 0.13.0
0.6.0 - 2024-02-07
- The minimum supported rust version is now 1.70.0.
- Updated the miette dependency to version 7.0.0.
0.5.1 - 2023-11-02
- The
prost
andprost-reflect
dependencies are now re-exported at the crate root, for easier use in build scripts.
0.5.0 - 2023-09-01
- The minimum supported rust version is now 1.64.0.
- Updated to prost 0.12.0
- Protox now validates that all referenced types are included in imported files (#6)
0.4.1 - 2023-06-25
- Fixed a panic while parsing an invalid file like
{ $
.
0.4.0 - 2023-06-18
- Breaking:
Compiler::files
is now returns an iterator ofFileMetadata
instances, to avoid some clones while compiling a file.
0.3.5 - 2023-06-05
- The error when reading invalid UTF-8 is now classified as a parse error, not an IO error.
0.3.4 - 2023-06-05
- Added new methods to get error details:
Error::is_parse
,Error::is_io
andError::file
.
0.3.3 - 2023-04-27
- Updated logos dependency to 0.13.0.
- Reduce minimum supported rust version to 1.60.0 to match prost-reflect.
0.3.1 - 2023-04-10
- Added the
Compiler::files
method to get all imported files. This may be used to emitrerun-if-changed
directives in a build script.
- The
Debug
representation ofError
is now more concise and readable, to support usage withunwrap
in build scripts.
0.3.0 - 2023-04-04
- Added the
Compiler::descriptor_pool
method to get the descriptor pool containing all referenced files.
- Updated
prost-reflect
dependency to 0.11.0. - Renamed
File::to_file_descriptor_proto
toFile::file_descriptor_proto
and changed it to return a reference instead of cloning.
0.2.2 - 2023-02-19
protox_parse::parse
will no longer automatically populate thejson_name
field of fields. This behaviour has moved toprost-reflect
(see (#27)[andrewhickman/prost-reflect#27]), so the behaviour ofprotox::compile
is unchanged.
0.2.1 - 2023-01-07
- Fixed decoding of
DescriptorSetFileResolver
.
0.2.0 - 2023-01-04
- Breaking: The
parse()
function now takes an additional argument for the file name. - Breaking:
Compiler::add_file
is renamed toCompiler::open_file
.
- Fixed name resolution in nested messages
- Fixed source info for oneofs not including comments
- Enums now respect the allow_alias option
- Extension options are now supported
- More validation checks have been added (some still remain, see #5)
0.1.0 - 2022-07-25
- Initial release, implementing most of the functionality of protoc in rust. The main unimplemented features are:
- Setting extension options in .proto source files is not supported
- Some validation checks are missing