mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
Make required changed to ensure the library compiles when no traits are enabled (fix: https://github.com/swift-server/swift-aws-lambda-runtime/issues/562) Add an example project that serves as test in the CI ### Motivation: Recent changes introduced compilation errors when no traits are enabled. ### Modifications: - `LambdaResponseStreamWriter.writeStatusAndHeaders()` moved to the `FoundationSupport` directory where all classes and struct depending on `Encodable` and `Decodable` are located, protected by `#if FoundationJSONSupport` - `LambdaRuntime.run()` method when ServiceLifeCycle is disabled in now public (and therefore can not be `@inlinable` anymore) - Add an example that disables all traits. - Add this example to the CI ### Result: The Library now compiles when no default traits are enabled. This is flagged `semver/major` because we change the public API `LambdaRuntime.run()`