Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 12, 2021

Motivation:

In some situations NIOSSL isn't required when using gRPC. Since NIOSSL
brings a copy of BoringSSL with it it is quite a large depenency to
bring along.

Modifications:

  • Wrap all code which uses NIOSSL in #if canImport(NIOSSL)
  • This required shuffling around a few files, the code isn't
    meaningfully different otherwise

Result:

gRPC can be compiled without NIOSSL.

@glbrntt glbrntt force-pushed the gb-can-import-niossl branch 2 times, most recently from cb0efc7 to d6b3806 Compare November 12, 2021 16:32
Motivation:

In some situations NIOSSL isn't required when using gRPC. Since NIOSSL
brings a copy of BoringSSL with it it is quite a large depenency to
bring along.

Modifications:

- Wrap all code which uses NIOSSL in `#if canImport(NIOSSL)`
- This required shuffling around a few files, the code isn't
  meaningfully different otherwise

Result:

gRPC can be compiled without NIOSSL.
@glbrntt glbrntt force-pushed the gb-can-import-niossl branch from d6b3806 to b74dceb Compare November 12, 2021 16:40
@glbrntt glbrntt marked this pull request as ready for review November 15, 2021 09:48
@glbrntt glbrntt requested a review from Lukasa November 15, 2021 09:48
fail-fast: false
matrix:
include:
- image: swift:5.4-focal
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No 5.5?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we don't have 5.5 at all. Let's add it in a separate pr.

@glbrntt glbrntt merged commit 83267df into grpc:main Nov 15, 2021
@glbrntt glbrntt deleted the gb-can-import-niossl branch November 15, 2021 10:52
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Nov 15, 2021
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Dec 16, 2021
Motivation:

In some situations NIOSSL isn't required when using gRPC. Since NIOSSL
brings a copy of BoringSSL with it it is quite a large depenency to
bring along.

Modifications:

- Wrap all code which uses NIOSSL in `#if canImport(NIOSSL)`
- This required shuffling around a few files, the code isn't
  meaningfully different otherwise

Result:

gRPC can be compiled without NIOSSL.
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Jun 17, 2022
Motivation:

In some situations NIOSSL isn't required when using gRPC. Since NIOSSL
brings a copy of BoringSSL with it it is quite a large depenency to
bring along.

Modifications:

- Wrap all code which uses NIOSSL in `#if canImport(NIOSSL)`
- This required shuffling around a few files, the code isn't
  meaningfully different otherwise

Result:

gRPC can be compiled without NIOSSL.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants