Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
730a17fd
Commit
730a17fd
authored
9 years ago
by
Alex Crichton
Browse files
Options
Downloads
Patches
Plain Diff
Root urls for everyone!
Also refator to only list all the triples once
parent
dab1ead5
No related branches found
Branches containing commit
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ci/dox.sh
+8
-20
8 additions, 20 deletions
ci/dox.sh
src/lib.rs
+36
-2
36 additions, 2 deletions
src/lib.rs
with
44 additions
and
22 deletions
ci/dox.sh
+
8
−
20
View file @
730a17fd
...
...
@@ -7,29 +7,17 @@ mkdir -p target/doc
cp
ci/landing-page-head.html target/doc/index.html
doc
()
{
local
_target
=
$1
echo
documenting
$_target
rustdoc
-o
target/doc/
$_target
--target
$_target
src/lib.rs
--cfg
dox
\
TARGETS
=
`
grep
html_root_url src/lib.rs |
sed
's/.*".*\/\(.*\)"/\1/'
`
for
target
in
$TARGETS
;
do
echo
documenting
$target
rustdoc
-o
target/doc/
$target
--target
$target
src/lib.rs
--cfg
dox
\
--crate-name
libc
echo
"<li><a href="
$
_
target
/libc/index.html
">
$
_
target
</a></li>"
\
echo
"<li><a href="
$target
/libc/index.html
">
$target
</a></li>"
\
>>
target/doc/index.html
}
doc x86_64-unknown-linux-gnu
doc i686-unknown-linux-gnu
doc x86_64-apple-darwin
doc i686-apple-darwin
doc x86_64-pc-windows-gnu
doc x86_64-pc-windows-msvc
doc i686-pc-windows-gnu
doc i686-pc-windows-msvc
doc arm-unknown-linux-gnueabihf
doc mips-unknown-linux-gnu
doc arm-linux-androideabi
doc x86_64-unknown-linux-musl
done
cat
ci/landing-page-footer.html
>>
target/doc/index.html
...
...
This diff is collapsed.
Click to expand it.
src/lib.rs
+
36
−
2
View file @
730a17fd
...
...
@@ -14,8 +14,42 @@
#![doc(html_logo_url
=
"https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png"
,
html_favicon_url
=
"https://doc.rust-lang.org/favicon.ico"
)]
#![cfg_attr(all(target_os
=
"linux"
,
target_arch
=
"x86_64"
),
doc(html_root_url
=
"http://alexcrichton.com/libc/x86_64-unknown-linux-gnu"
))]
#![cfg_attr(all(target_os
=
"linux"
,
target_arch
=
"x86_64"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/x86_64-unknown-linux-gnu"
))]
#![cfg_attr(all(target_os
=
"linux"
,
target_arch
=
"x86"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/i686-unknown-linux-gnu"
))]
#![cfg_attr(all(target_os
=
"linux"
,
target_arch
=
"arm"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/arm-unknown-linux-gnueabihf"
))]
#![cfg_attr(all(target_os
=
"linux"
,
target_arch
=
"mips"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/mips-unknown-linux-gnu"
))]
#![cfg_attr(all(target_os
=
"linux"
,
target_env
=
"musl"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/x86_64-unknown-linux-musl"
))]
#![cfg_attr(all(target_os
=
"macos"
,
target_arch
=
"x86_64"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/x86_64-apple-darwin"
))]
#![cfg_attr(all(target_os
=
"macos"
,
target_arch
=
"x86"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/i686-apple-darwin"
))]
#![cfg_attr(all(windows,
target_arch
=
"x86_64"
,
target_env
=
"gnu"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/x86_64-pc-windows-gnu"
))]
#![cfg_attr(all(windows,
target_arch
=
"i686"
,
target_env
=
"gnu"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/i686-pc-windows-gnu"
))]
#![cfg_attr(all(windows,
target_arch
=
"x86_64"
,
target_env
=
"msvc"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/x86_64-pc-windows-msvc"
))]
#![cfg_attr(all(windows,
target_arch
=
"i686"
,
target_env
=
"msvc"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/i686-pc-windows-msvc"
))]
#![cfg_attr(all(target_os
=
"android"
),
doc(
html_root_url
=
"http://alexcrichton.com/libc/arm-linux-androideabi"
))]
#[macro_use]
mod
macros
;
mod
dox
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment