Rust SDK 0.8.0
Added
- Added
Dictionary::try_get
, which returns aResult<String, LookupError>
, allowing programs to explicitly handle lookup failures. - Added an
Other
variant todictionary::LookupError
. - Added
close
toRequestHandle
, andResponseHandle
. - Added the
non_exhaustive
enumsHandleError
andHandleKind
for the low level handle interface. - Added
Satellite
andUltraBroadband
variants forConnSpeed
andConnType
in the geolocation interface. - Added
Other
variants forConnSpeed
,ConnType
,Continent
,ProxyDescription
, andProxyType
in the geolocation interface for cases where the geolocation database contains variants that are newer than the current SDK definitions.
Fixed
- Fixed geolocation calls returning no data when only partial data was available for a requested IP address.
Changed
- The Minimum Supported Rust Version (MSRV) for the
fastly
crate is now 1.54.0. BodyHandle::close
now works for non-streaming bodies in addition to the already-closeable streaming bodies.BodyHandle
,RequestHandle
andResponseHandle
now callclose
as part of theirDrop
implementation when they go out of scope, saving a small amount of leaked memory for services that make multiple HTTP requests.- Exported unsafe low-level interfaces for creating
BodyHandle
s. - The functions
is_valid
andis_invalid
are nowconst
forBodyHandle
,RequestHandle
, andResponseHandle
Geo::utc_offset
now returnsOption<time::UtcOffset>
instead ofOption<chrono::FixedOffset>
.ConnSpeed
,ConnType
,ProxyDescription
, andProxyType
are nownon_exhaustive
.- Exported the
fastly::dictionary
module. Its exported typesDictionary
andLookupError
remain accessible through other paths, but this module provides a way to import them together.
Removed
- Removed
Copy
fromConnSpeed
,ConnType
,Continent
,ProxyDescription
andProxyType
inside thegeo
module; their newOther
variants contain an arbitraryString
which is notCopy
able. The strings theOther
variant might contain are small, so these enums (andGeo
itself) can be efficiently cloned.
Prior change: JavaScript SDK 0.2.0
Following change: CLI v0.37.0