New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix up Imports #2963
Fix up Imports #2963
Changes from all commits
ef2e96c
ec809b3
603cbd2
472d1d8
ca33f72
c4e0df9
cb307a1
1168cc5
801b5ca
8364325
36f2e5d
4ad4e01
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,13 @@ jobs: | |
with_coverage: false | ||
with_tsan: false | ||
with_public_api_check: true | ||
test-exports: | ||
name: Test exports | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out Vapor | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Build | ||
run: swift build -Xswiftc -DBUILDING_DOCC | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Honestly I didn't actually try! I'll try in the next repo and we can always backport it |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
version: 1 | ||
metadata: | ||
authors: "Maintained by the Vapor Core Team with hundreds of contributions from the Vapor Community." | ||
external_links: | ||
documentation: "https://docs.vapor.codes" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import Vapor | ||
import Logging | ||
|
||
var env = try Environment.detect() | ||
try LoggingSystem.bootstrap(from: &env) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import Vapor | ||
import NIOCore | ||
import NIOHTTP1 | ||
|
||
struct Creds: Content { | ||
var email: String | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import NIOCore | ||
|
||
/// Capable of being authenticated. | ||
public protocol Authenticatable { } | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import NIOHTTP1 | ||
|
||
/// A bearer token. | ||
public struct BearerAuthorization { | ||
/// The plaintext token | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import Foundation | ||
import CVaporBcrypt | ||
|
||
// MARK: BCrypt | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import Foundation | ||
import NIOCore | ||
import NIOConcurrencyHelpers | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import ConsoleKit | ||
|
||
/// Boots the `Application` then exits successfully. | ||
/// | ||
/// $ swift run Run boot | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import ConsoleKit | ||
|
||
extension CommandContext { | ||
public var application: Application { | ||
get { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import NIOCore | ||
import NIOHTTP1 | ||
|
||
/// Can convert `self` to a `Response`. | ||
/// | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import NIOCore | ||
|
||
extension Application { | ||
public struct Running { | ||
final class Storage { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
import Foundation | ||
#if os(Linux) | ||
import Backtrace | ||
import CBacktrace | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import NIOCore | ||
|
||
public enum BodyStreamResult { | ||
/// A normal data chunk. | ||
/// There will be 0 or more of these. | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import AsyncHTTPClient | ||
|
||
extension Application.Clients.Provider { | ||
public static var http: Self { | ||
.init { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import NIO | ||
import Foundation | ||
import NIOHTTP1 | ||
|
||
extension HTTPHeaders { | ||
public struct Expires { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're at it, we should either turn off TSan for the provider tests or turn it on for the unit tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should probably be on really. I'll make a note to enable it when I do some Sendable work