Code Monkey home page Code Monkey logo

c7's People

Contributors

antonmes avatar czechboy0 avatar dreymonde avatar ketzusaka avatar kevinup7 avatar loganwright avatar noppoman avatar obbut avatar paulofaria avatar scottbyrns avatar tanner0101 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

c7's Issues

Create multiple targets (modules) inside C7

SPM supports multiple targets (modules). Maybe having those inside the C7 package would be a good a idea. We could have the C7 module which would be an umbrella module which @_exported import all modules inside C7 package. This would give us module namespacing. So we could have Stream.Error instead of C7.StreamError, for example.

This approach could be in all OpenSwift packages. I just created the issue here for specific examples.

Build error

Got error on build

Cloning https://github.com/VeniceX/TCP.git
Resolved version: 0.4.2
Cloning https://github.com/VeniceX/IP.git
Resolved version: 0.4.3
Cloning https://github.com/VeniceX/Venice.git
Resolved version: 0.4.2
Cloning https://github.com/VeniceX/CLibvenice.git
Resolved version: 0.4.2
Cloning https://github.com/open-swift/C7.git
Resolved version: 0.4.2
Cloning https://github.com/Zewo/OS.git
Resolved version: 0.4.2
Cloning https://github.com/Zewo/Data.git
Resolved version: 0.4.9
Cloning https://github.com/SwiftX/C7.git
/usr/bin/git clone --recursive --depth 10 https://github.com/SwiftX/C7.git /Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7
fatal: destination path '/Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7' already exists and is not an empty directory.

error: Failed to clone https://github.com/SwiftX/C7.git to /Users/DenisK/Work/Swift/Zewo-dev-new/Redis/Packages/C7

Emits warnings on Swift 04-25

/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
                                           ^~~~~~~~~
                                                           @noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
                                           ^~~~~~~~~
                                                           @noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:193:44: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public func withUnsafeBufferPointer<R>(@noescape body: (UnsafeBufferPointer<Byte>) throws -> R) rethrows -> R {
                                           ^~~~~~~~~
                                                           @noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
                                                           ^~~~~~~~~
                                                                           @noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
                                                           ^~~~~~~~~
                                                                           @noescape
/Users/honzadvorsky/Documents/vapor/Packages/C7-0.5.0/Sources/Data.swift:197:60: warning: @noescape is now an attribute on a parameter type, instead of on the parameter itself
    public mutating func withUnsafeMutableBufferPointer<R>(@noescape body: (inout UnsafeMutableBufferPointer<Byte>) throws -> R) rethrows -> R {
                                                           ^~~~~~~~~
                                                                           @noescape

Compilation still finishes, but it'd be nice to have a 04-25 clean version ๐Ÿ˜Š

Swift 3.0 compatibility

Swift version 3.0-dev (LLVM 752e1430fc, Clang 3987718dae, Swift 36739f7b57)

XXX/Packages/C7-0.2.0/Sources/AsyncStream.swift:4:18: warning: extraneous duplicate parameter name; 'length' already has an argument label
    func receive(length length: Int, result: (Void throws -> Data) -> Void)
                 ^~~~~~~

XXX/Packages/C7-0.2.0/Sources/AsyncStream.swift:5:15: warning: extraneous duplicate parameter name; 'data' already has an argument label
    func send(data data: Data, result: (Void throws -> Void) -> Void)
              ^~~~~

XXX/Packages/C7-0.2.0/Sources/Data.swift:34:26: error: method 'replaceSubrange(subRange:with:)' has different argument names from those required by protocol 'RangeReplaceableCollection' ('replaceSubrange(_:with:)')
    public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Byte>(subRange: Range<Int>, with newElements: C) {
                         ^
                                                                                          _ 
Swift.RangeReplaceableCollection:16:26: note: requirement 'replaceSubrange(_:with:)' declared here
    public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Iterator.Element>(_ subRange: Range<Self.Index>, with newElements: C)
                         ^
XXX/Packages/C7-0.2.0/Sources/Data.swift:34:26: error: method 'replaceSubrange(subRange:with:)' has different argument names from those required by protocol 'RangeReplaceableCollection' ('replaceSubrange(_:with:)')
    public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Byte>(subRange: Range<Int>, with newElements: C) {
                         ^
                                                                                          _ 
Swift.RangeReplaceableCollection:16:26: note: requirement 'replaceSubrange(_:with:)' declared here
    public mutating func replaceSubrange<C : Collection where C.Iterator.Element == Iterator.Element>(_ subRange: Range<Self.Index>, with newElements: C)
                         ^
<unknown>:0: error: build had 1 command failures

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.