CARVIEW |
Select Language
HTTP/2 200
date: Wed, 15 Oct 2025 00:36:57 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"f701cc9c32408b1edfe99969a16a0617"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com github.githubassets.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com marketplace-screenshots.githubusercontent.com/ copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=wkHgsW3pOAwpJhj1DWpe8piYr4VDd0CGqWWDlnKp4cP1zt%2FTjQ6HKXfmhNSRrpF6%2Fp2lXkcz5tB9s5QoHHL3Sv80yHEwnFPGJiRkAxoyXuX8xPbN2SDkKgvb6Z8K8e%2BLmLmc0IZejhBA2FWXyvCSOrY8dHm5JE2Kj%2BKaKUv54dEmxcAHO3rbulpPLkv9vhhhBbIO2BQFV4ybZ9lCc24VPlDDiimJmlLfOu8IWeZM%2BLxpQzxWXwNSZyAkoayPvH2N2YtytghIIQcvukyuHlIDtw%3D%3D--7kXcLiVOiTr%2B8j0E--Xj6rKlFK1IlmGn14bYrkog%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.837573310.1760488617; Path=/; Domain=github.com; Expires=Thu, 15 Oct 2026 00:36:57 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 15 Oct 2026 00:36:57 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: A366:35FB05:110E40F:146FABE:68EEECA9
Release v1.0.0 · scribd/Weaver · GitHub
Loading
Skip to content
Navigation Menu
{{ message }}
This repository was archived by the owner on Oct 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
v1.0.0
Compare
First stable version of Weaver 🎉
Foundations rework
- Dependency Graph: The dependency graph representation has been entirely reworked in order to allow for more flexibility at use. Basically, it is now linked using hash keys rather than direct object references.
- Linker/Inspector: Since the dependency graph changed, the linker & Inspector naturally changed as well. Accessing to data through the graph can now throw, giving a more precise error handling. The visitor algorithm for resolving and building remains fairly the same, but now supports new features, which I will describe a bit below.
- Generator: The generator has been entirely rewritten using Meta. It also supports new features which I will describe below.
Optimizations
- Lexer: A cache (
LexerCache
) has been added in order to avoid SourceKitten to parse the source files every time (~1s for ~30 files). This cache stores one token list per file. A token list is invalidated once its file has changed after it was stored. The format for storing is an optimized JSON where every key is only one or two characters. - Generator: The generated Swift code is now relying a lot more on runtime, which brings more flexibility for supporting new features, but also allows Weaver to generate one single dependency container per project instead of one per injectable type
- Misc optimizations as a result of profiling the binary (~0.5s instead of ~2s for ~30 files when cache is complete).
New Features
- Property wrapper support. With Swift 5.1, Weaver is now able to detect property wrappers named
@Weaver(...)
as annotations. - Dependencies can now be resolved by name and/or by type.
- Abstract types can be composite (eg.
A & B
) and still be resolved correctly as soon as a registration is declared up the tree with a super set abstract type (eg.A & B & C
). - Some new (more specific) errors are now thrown. Eg. type mismatch, ambiguous type, ambiguous dependency name, etc...
- Added generation of a stub implementation of the main dependency resolver to facilitate testing. The code is generated in a separated file
WeaverTests.swift
. - Added scope
lazy
which activates a lazy loading mechanism for a given dependency. - Added configuration attribute
setter
which makes Weaver generate a setter for a given dependency. - An injectable type can now reference itself. The stored reference is weak, avoiding retain cycles. The optionality of that reference is abstracted away by Weaver though.
Breaking changes
- Only one unique file per target (app/tests) can be generated while Weaver used to offer an option to generate multiple files.
- Naturally, the
xcfilelist
command has been removed since its necessity was very limited by the fact that only one file is generated now. - Detailed resolvers are always on, which means the option doesn't exist anymore.
- Custom stencil templates aren't supported anymore, since Stencil has been replaced by Meta.
- The argument
--output-path
has been renamed to--main-output-path
in order to go along with the--test-output-path
.
Assets 3
You can’t perform that action at this time.