-
Notifications
You must be signed in to change notification settings - Fork 185
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
Move ffi/gn to docs/tutorials/gn #4535
Changes from all commits
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
buildconfig = "//ffi/gn/BUILDCONFIG.gn" | ||
root = "//ffi/gn:default" | ||
buildconfig = "//docs/tutorials/gn/BUILDCONFIG.gn" | ||
root = "//docs/tutorials/gn:default" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ members = [ | |
# implicitly excluded from the main workspace. | ||
exclude = [ | ||
# GNaw needs to be run from outside the workspace for features to work | ||
"ffi/gn", | ||
"docs/tutorials/gn", | ||
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. nit: docs is already excluded 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. |
||
# Testdata will still be published in the 1.x stream, but is deprecated | ||
# and we don't use it anymore. As we don't want to keep the actual data | ||
# in the repo it doesn't build without running `cargo make testdata-legacy` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
group("default") { | ||
deps = [ | ||
"//ffi/gn/hello_world:print_hello", | ||
"//ffi/gn/icu4x:icu_capi" | ||
"//docs/tutorials/gn/hello_world:print_hello", | ||
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. is there a way to define the root as docs/tutorials/gn? 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. Either this or using a symlink; prefer making the GN root the repo root. Clients vendoring ICU4X don't need this part of the setup |
||
"//docs/tutorials/gn/icu4x:icu_capi" | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,9 +10,9 @@ edition = "2021" | |
|
||
[dependencies] | ||
# Note: Only dependencies that are explicitly listed here are given public GN build targets. | ||
icu_capi = { version = "1.0", path = "../../ffi/capi", default-features = false, features = ["default_components"] } | ||
icu = { version = "1.0", path = "../../components/icu", default-features = false } | ||
icu_provider = { version = "1.0", path = "../../provider/core" } | ||
icu_capi = { version = "1.0", default-features = false, features = ["default_components"] } | ||
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. just to double check: the explicit paths are being replaced by the tutorial patch file? 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. Yes |
||
icu = { version = "1.0", default-features = false } | ||
icu_provider = { version = "1.0" } | ||
|
||
[gn.package.proc-macro2."1.0.75"] | ||
rustflags = ["--cfg=use_proc_macro", "--cfg=wrap_proc_macro", "--cfg=proc_macro_span"] | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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. should we move this file into docs/tutorials/gn? there's significant logic here that needs to be discoverable. 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 comment
The reason will be displayed to describe this comment to others. Learn more.
what is this file for?
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 defines the root, which must be an ancestor of code being built