Releases: k9withabone/compose_spec_rs
Releases · k9withabone/compose_spec_rs
v0.2.0
New Features
- (volume) Add
Volume::is_empty()
. - (network) Add
Network::is_empty()
.- Add
is_empty()
methods tonetwork::{Network, Ipam, IpamConfig}
.
- Add
- (service) Add
service::Logging::is_empty()
. - (service) Add
service::healthcheck::Command::is_empty()
. - (service) Add
service::Build::is_empty()
. - (service) Add
service::BlkioConfig::is_empty()
. - (service) Add
is_empty()
methods toservice::volumes::mount
types.- Add
is_empty()
methods toservice::volumes::mount::{VolumeOptions, BindOptions, TmpfsOptions}
.
- Add
- (service) Implement
Default
forservice::deploy::resources::Device
. - (service) Add
service::deploy::Resources::is_empty()
.- Add
is_empty()
methods toservice::deploy::resources::{Resources, Limits, Reservations, Device, GenericResource, DiscreteResourceSpec}
.
- Add
- (service) Add
service::Deploy::is_empty()
.- Add
is_empty()
methods toservice::deploy::{Deploy, Placement, Preference, RestartPolicy, UpdateRollbackConfig}
.
- Add
- (service) Implement
Default
forservice::Healthcheck
. - (service) Add
into_short()
methods toservice::volumes::mount::{Volume, Bind}
. - (service) Implement
Display
forservice::blkio_config::Weight
. - (service) Implement
From<service::UserOrGroup>
forString
. - Implement
PartialEq<str>
andPartialEq<&str>
for key types.compose_spec::{Identifier, MapKey, ExtensionKey, service::{build::CacheOption, user_or_group::Name, Hostname, Resource}}
- (service) Add
service::volumes::mount::Tmpfs::from_target()
.- Also implemented
From<service::volumes::AbsolutePath>
forservice::volumes::mount::Tmpfs
using the new function.
- Also implemented
- BREAKING (service) Add
entitlements
field toservice::Build
(#15).
Bug Fixes
- BREAKING (service) Allow for unlimited
pids_limit
.- Generalize
service::MemswapLimit
intoservice::Limit<T>
. Service.memswap_limit
is now anOption<Limit<ByteValue>>
.Service.pids_limit
is now anOption<Limit<u32>>
.service::deploy::resources::Limits.pids
is now anOption<Limit<u32>>
.
- Generalize
- BREAKING
service::Device
no longer implementsDefault
(this was a mistake). - BREAKING (service) Container paths must be absolute.
Service.tmpfs
is now anOption<ItemOrList<AbsolutePath>>
.Service.working_dir
is now anOption<AbsolutePath>
.service::blkio_config::BpsLimit.path
is now anAbsolutePath
.service::blkio_config::IopsLimit.path
is now anAbsolutePath
.service::blkio_config::WeightDevice.path
is now anAbsolutePath
.service::develop::WatchRule.target
is now anOption<AbsolutePath>
.service::Device.container_path
is now anAbsolutePath
.- Add
service::device::ParseDeviceError::ContainerPathAbsolute
variant.
- (service)
ShortVolume::into_long()
setcreate_host_path: true
.- When converting a
service::volumes::ShortVolume
into aservice::volumes::mount::Bind
, thecreate_host_path
field inservice::volumes::mount::BindOptions
should be set totrue
.
- When converting a
Documentation
- Fix
ListOrMap::into_list()
docs.- Last line was a normal comment instead of a doc comment.
- (changelog) Add git-cliff configuration
Tests
- (service) Fix
service::ports::ShortRanges
generation.- The
offset
range could become0..0
which causedproptest
to panic.
- The
Miscellaneous
- (ci) Add semver-checks job.
- Use cargo-semver-checks to make sure the package version is increased correctly when making changes.
- (deps) Update dependencies.
- (ci) Bump
typos
to v1.20.9.
v0.1.0
The initial release of compose_spec
!
Features
- (De)serialize from/to the structure of the Compose specification.
- Values are fully validated and parsed.
- Completely documented.
- Conversion between short and long syntax forms of values.
- Conversion between
std::time::Duration
and the duration string format from the compose-spec.