mirror of https://github.com/fafhrd91/actix-net
5.5 KiB
5.5 KiB
Changes
Unreleased
- Minimum supported Rust version (MSRV) is now 1.76.
2.0.3
- Minimum supported Rust version (MSRV) is now 1.71.
2.0.2
- Service types can now be
Sendand'staticregardless of request, response, and config types, etc. #397
2.0.1
- Documentation fix. #388
2.0.0
- Removed pipeline and related structs/functions. #335
2.0.0-beta.5
- Add default
Servicetrait impl forRc<S: Service>and&S: Service. #288 - Add
boxed::rc_servicefunction for constructingboxed::RcServicetype #290
2.0.0-beta.4
Service::poll_readyandService::callreceive&self. #247apply_fnandapply_fn_factorynow receiveFn(Req, &Service)function type. #247apply_cfgandapply_cfg_factorynow receiveFn(Req, &Service)function type. #247fn_serviceand friends now receiveFn(Req)function type. #247
2.0.0-beta.3
- The
forward_ready!macro converts errors. #246
2.0.0-beta.2
- Remove redundant type parameter from
map_config.
2.0.0-beta.1
Service, other traits, and many type signatures now take the the request type as a type parameter instead of an associated type. #232- Add
always_ready!andforward_ready!macros. #233 - Crate is now
no_std. #233 - Migrate pin projections to
pin-project-lite. #233 - Remove
AndThenApplyFnand Pipelineand_then_apply_fn. Use the.and_then(apply_fn(...))construction. #233 - Move non-vital methods to
ServiceExtandServiceFactoryExtextension traits. #235
1.0.6
- Removed unsound custom Cell implementation that allowed obtaining several mutable references to the same data, which is undefined behavior in Rust and could lead to violations of memory safety. External code could obtain several mutable references to the same data through service combinators. Attempts to acquire several mutable references to the same data will instead result in a panic.
1.0.5
- Fixed unsoundness in .and_then()/.then() service combinators.
1.0.4
- Revert 1.0.3 change
1.0.3
- Fixed unsoundness in
AndThenServiceimpl.
1.0.2
- Add
into_servicehelper function.
1.0.1
map_config()andunit_config()now acceptIntoServiceFactorytype.
1.0.0
- Add Clone impl for Apply service
1.0.0-alpha.4
- Renamed
service_fntofn_service - Renamed
factory_fntofn_factory - Renamed
factory_fn_cfgtofn_factory_with_config
1.0.0-alpha.3
- Add missing Clone impls
- Restore
Transform::map_init_err()combinator - Restore
Service/Factory::apply_fn()in form ofPipeline/Factory::and_then_apply_fn() - Optimize service combinators and futures memory layout
1.0.0-alpha.2
- Use owned config value for service factory
- Renamed BoxedNewService/BoxedService to BoxServiceFactory/BoxService
1.0.0-alpha.1
- Migrated to
std::future NewServicerenamed toServiceFactory- Added
pipelineandpipeline_factoryfunction
0.4.2
- Check service readiness for
new_apply_cfgcombinator
0.4.1
- Add
new_apply_cfgfunction
0.4.0
- Add
NewService::map_configandNewService::unit_configcombinators. - Use associated type for
NewServiceconfig. - Change
apply_cfgfunction. - Renamed helper functions.
0.3.6
- Poll boxed service call result immediately
0.3.5
- Add
impl<S: Service> Service for Rc<RefCell<S>>.
0.3.4
- Add
Transform::from_err()combinator - Add
apply_fnhelper - Add
apply_fn_factoryhelper - Add
apply_transformhelper - Add
apply_cfghelper
0.3.3
- Add
ApplyTransformnew service for transform and new service. - Add
NewService::apply_cfg()combinator, allows to use nestedNewServicewith different config parameter. - Revert IntoFuture change
0.3.2
- Change
NewService::FutureandTransform::Futureto theIntoFuturetrait. - Export
AndThenTransformtype
0.3.1
- Simplify Transform trait
0.3.0
- Added boxed NewService and Service.
- Added
Configparameter toNewServicetrait. - Added
Configparameter toNewTransformtrait.
0.2.2
- Added
NewServiceimpl forRc<S> where S: NewService - Added
NewServiceimpl forArc<S> where S: NewService
0.2.1
- Generalize
.applycombinator with Transform trait
0.2.0
- Use associated type instead of generic for Service definition.
- Before:
impl Service<Request> for Client { type Response = Response; // ... } - After:
impl Service for Client { type Request = Request; type Response = Response; // ... }
- Before:
0.1.6
- Use
FnMutinstead ofFnfor .apply() and .map() combinators andFnServicetype - Change
.apply()error semantic, new service's error isFrom<Self::Error>
0.1.5
- Make
Out::Errorconvertible fromT::Errorfor apply combinator
0.1.4
- Use
FnMutinstead ofFnforFnService
0.1.3
- Split service combinators to separate trait
0.1.2
- Release future early for
.and_then()and.then()combinators
0.1.1
- Added Service impl for
Box<S: Service>
0.1.0
- Initial import