Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

MaxDesiatov/WASIFoundation

This repository is deprecated, use Foundation proper distributed with SwiftWasm

WASIFoundation

Swift License

Minimalistic Swift Foundation built on top of the WebAssembly System Interface. Only a very limited subset of the API is implemented, just enough to bootstrap the SwiftWasm efforts, namely

  • Data (base64 API not supported yet)
  • FileHandle.init(fileDescriptor:), FileHandle.write(_:), FileHandle.standardError
  • JSONDecoder and JSONEncoder
  • RegularExpression
  • Basic DateComponents API
  • Date
  • DateFormatter with a hardcoded ISO format, custom formatting with the Foundation format isn't supported yet (because strftime format is substantially different from Foundation's format specifiers)
  • String.init(format:arguments:), String.appendingFormat, String.appending
  • Basic URL API.

Contributing

This project adheres to the Contributor Covenant Code of Conduct. By participating, you are expected to uphold this code.

License

This project uses parts of SwiftFoundation, which are distributed under the terms of the MIT License.

The rest of the code is distributed under the Apache 2.0 license.

About

This repository is deprecated, use Foundation proper distributed with SwiftWasm

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
SwiftFoundation-LICENSE

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages