Skip to content

Commit 493ce19

Browse files
legendecasnodejs-github-bot
authored andcommitted
deps: add vendor depenency crate
Add cargo config to support building a unified cargo static lib to include multiple crate dependencies to be used by Node.js. This also allows additional crate dependencies to be added, like amaro. PR-URL: #61072 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Marco Ippolito <[email protected]>
1 parent 6157c81 commit 493ce19

File tree

9 files changed

+588
-6
lines changed

9 files changed

+588
-6
lines changed

β€Ž.github/workflows/test-shared.ymlβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ on:
1616
- deps/ada/**
1717
- deps/brotli/**
1818
- deps/cares/**
19+
- deps/crates/**
1920
- deps/corepack/**
2021
- deps/icu-small/**
2122
- deps/icu-tmp/**
@@ -25,7 +26,6 @@ on:
2526
- deps/openssl/*/**
2627
- deps/simdjson/**
2728
- deps/sqlite/**
28-
- deps/temporal/**
2929
- deps/uv/**
3030
- deps/uvwasi/**
3131
- deps/zlib/**
@@ -62,6 +62,7 @@ on:
6262
- deps/ada/**
6363
- deps/brotli/**
6464
- deps/cares/**
65+
- deps/crates/**
6566
- deps/corepack/**
6667
- deps/icu-small/**
6768
- deps/icu-tmp/**
@@ -71,7 +72,6 @@ on:
7172
- deps/openssl/*/**
7273
- deps/simdjson/**
7374
- deps/sqlite/**
74-
- deps/temporal/**
7575
- deps/uv/**
7676
- deps/uvwasi/**
7777
- deps/zlib/**

β€ŽMakefileβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ ifeq ($(SKIP_SHARED_DEPS), 1)
12361236
$(RM) -r $(TARNAME)/deps/ada
12371237
$(RM) -r $(TARNAME)/deps/brotli
12381238
$(RM) -r $(TARNAME)/deps/cares
1239+
$(RM) -r $(TARNAME)/deps/crates
12391240
$(RM) -r $(TARNAME)/deps/icu-small
12401241
$(RM) -r $(TARNAME)/deps/icu-tmp
12411242
$(RM) -r $(TARNAME)/deps/llhttp
@@ -1245,7 +1246,6 @@ ifeq ($(SKIP_SHARED_DEPS), 1)
12451246
find $(TARNAME)/deps/openssl -mindepth 1 -maxdepth 1 -type d -exec $(RM) -r {} +
12461247
$(RM) -r $(TARNAME)/deps/simdjson
12471248
$(RM) -r $(TARNAME)/deps/sqlite
1248-
$(RM) -r $(TARNAME)/deps/temporal
12491249
$(RM) -r $(TARNAME)/deps/uv
12501250
$(RM) -r $(TARNAME)/deps/uvwasi
12511251
$(RM) -r $(TARNAME)/deps/zlib
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[source.crates-io]
2+
replace-with = "vendored-sources"
3+
4+
[source.vendored-sources]
5+
directory = "vendor"

β€Ždeps/crates/.gitignoreβ€Ž

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Include everything in `vendor/` except for hidden files
2+
!vendor/**/*
3+
.DS_Store

0 commit comments

Comments
Β (0)