Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144547127
D40510.1775350538.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D40510.1775350538.diff
View Options
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -1,6 +1,6 @@
PORTNAME= rust
PORTVERSION?= 1.70.0
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= lang
MASTER_SITES= https://static.rust-lang.org/dist/:src \
https://dev-static.rust-lang.org/dist/:src \
@@ -50,15 +50,14 @@
OPTIONS_DEFINE= DOCS GDB SOURCES WASM
OPTIONS_DEFAULT= SOURCES WASM
-.if !defined(NIGHTLY_DATE)
-OPTIONS_EXCLUDE= DOCS # https://github.com/rust-lang/rust/issues/76526
-.endif
GDB_DESC= Install ports gdb (necessary for debugging rust programs)
SOURCES_DESC= Install source files
WASM_DESC= Build the WebAssembly target (wasm32-unknown-unknown)
-DOCS_VARS= _RUST_BUILD_DOCS=true
+DOCS_VARS= _RUST_BUILD_DOCS=true \
+ _COMPONENTS+="rust-docs-${_PACKAGE_VERS}-${_RUST_TARGET} rust-docs-json-${_PACKAGE_VERS}-${_RUST_TARGET}" \
+ _RUST_TOOLS+=rustdoc
DOCS_VARS_OFF= _RUST_BUILD_DOCS=false
GDB_RUN_DEPENDS= ${LOCALBASE}/bin/gdb:devel/gdb
SOURCES_VARS= _COMPONENTS+=rust-src-${_PACKAGE_VERS} \
@@ -120,6 +119,10 @@
_COMPONENTS+= rustc-dev-${_PACKAGE_VERS}-${_RUST_TARGET}
.endif
+.if ${PORT_OPTIONS:MWASM} && ${PORT_OPTIONS:MDOCS}
+_COMPONENTS+= rust-docs-${_PACKAGE_VERS}-wasm32-unknown-unknown rust-docs-json-${_PACKAGE_VERS}-wasm32-unknown-unknown
+.endif
+
# If the kernel does not return sane kern.proc.pathname values
# for hardlinks then disable hardlinks in the build to avoid
# intermittent "can't find crate for `std`" build failures,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 12:55 AM (12 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28263968
Default Alt Text
D40510.1775350538.diff (1 KB)
Attached To
Mode
D40510: lang/rust: Documentation installation fix.
Attached
Detach File
Event Timeline
Log In to Comment