Sha256: 0b86377c6ca87971154b8f461e71d72727ecb65e550d2f96729d8949e5264155

Contents?: true

Size: 1.56 KB

Versions: 23

Compression:

Stored size: 1.56 KB

Contents

#!/bin/bash
#
# Copyright 2022 The Fuchsia Authors
#
# Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
# <LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
# license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
# This file may not be copied, modified, or distributed except according to
# those terms.

set -eo pipefail

COPYRIGHT_HEADER=$(mktemp)
BODY=$(mktemp)
DISCLAIMER_FOOTER=$(mktemp)

cat > $COPYRIGHT_HEADER <<'EOF'
<!-- Copyright 2022 The Fuchsia Authors

Licensed under a BSD-style license <LICENSE-BSD>, Apache License, Version 2.0
<LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0>, or the MIT
license <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your option.
This file may not be copied, modified, or distributed except according to
those terms.

WARNING: DO NOT EDIT THIS FILE. It is generated automatically. Edits should be
made in the doc comment on `src/lib.rs` or in `generate-readme.sh`.
-->

EOF

# This uses the `cargo readme` tool, which you can install via `cargo install
# cargo-readme --version 3.2.0`.
#
# The `sed` command is used to strip code links like:
#
#   /// Here is a link to [`Vec`].
#
# These links don't work in a Markdown file, and so we remove the `[` and `]`
# characters to convert them to non-link code snippets.
cargo readme --no-license | sed 's/\[\(`[^`]*`\)]/\1/g' > $BODY

cat > $DISCLAIMER_FOOTER <<'EOF'

## Disclaimer

Disclaimer: Zerocopy is not an officially supported Google product.
EOF

cat $COPYRIGHT_HEADER $BODY $DISCLAIMER_FOOTER

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-28.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-27.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-26.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-25.0.2 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-25.0.1 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-25.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-24.0.0 ./ext/cargo-vendor/zerocopy-0.7.35/generate-readme.sh
wasmtime-23.0.2 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-22.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-21.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-20.0.2 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-20.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-18.0.3 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-17.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-17.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-16.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-15.0.1 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-15.0.0 ./ext/cargo-vendor/zerocopy-0.7.32/generate-readme.sh
wasmtime-14.0.4 ./ext/cargo-vendor/zerocopy-0.7.15/generate-readme.sh