654cd8402d
MozReview-Commit-ID: GN9AldKK6uO --HG-- rename : third_party/rust/backtrace/.cargo-checksum.json => third_party/rust/backtrace-0.3.2/.cargo-checksum.json rename : third_party/rust/backtrace/.travis.yml => third_party/rust/backtrace-0.3.2/.travis.yml rename : third_party/rust/backtrace/Cargo.toml => third_party/rust/backtrace-0.3.2/Cargo.toml rename : third_party/rust/backtrace/src/backtrace/mod.rs => third_party/rust/backtrace-0.3.2/src/backtrace/mod.rs rename : third_party/rust/backtrace/src/backtrace/unix_backtrace.rs => third_party/rust/backtrace-0.3.2/src/backtrace/unix_backtrace.rs rename : third_party/rust/backtrace/src/capture.rs => third_party/rust/backtrace-0.3.2/src/capture.rs rename : third_party/rust/backtrace/src/lib.rs => third_party/rust/backtrace-0.3.2/src/lib.rs rename : third_party/rust/backtrace/src/symbolize/dbghelp.rs => third_party/rust/backtrace-0.3.2/src/symbolize/dbghelp.rs rename : third_party/rust/backtrace/src/symbolize/mod.rs => third_party/rust/backtrace-0.3.2/src/symbolize/mod.rs rename : third_party/rust/backtrace/tests/smoke.rs => third_party/rust/backtrace-0.3.2/tests/smoke.rs rename : third_party/rust/backtrace-sys/.cargo-checksum.json => third_party/rust/backtrace-sys-0.1.10/.cargo-checksum.json rename : third_party/rust/backtrace-sys/Cargo.toml => third_party/rust/backtrace-sys-0.1.10/Cargo.toml rename : third_party/rust/backtrace-sys/build.rs => third_party/rust/backtrace-sys-0.1.10/build.rs rename : third_party/rust/base64/.cargo-checksum.json => third_party/rust/base64-0.5.2/.cargo-checksum.json rename : third_party/rust/base64/Cargo.toml => third_party/rust/base64-0.5.2/Cargo.toml rename : third_party/rust/base64/README.md => third_party/rust/base64-0.5.2/README.md rename : third_party/rust/base64/benches/benchmarks.rs => third_party/rust/base64-0.5.2/benches/benchmarks.rs rename : third_party/rust/base64/src/lib.rs => third_party/rust/base64-0.5.2/src/lib.rs rename : third_party/rust/base64/tests/tests.rs => third_party/rust/base64-0.5.2/tests/tests.rs rename : third_party/rust/byteorder/.cargo-checksum.json => third_party/rust/byteorder-1.0.0/.cargo-checksum.json rename : third_party/rust/byteorder/.travis.yml => third_party/rust/byteorder-1.0.0/.travis.yml rename : third_party/rust/byteorder/Cargo.toml => third_party/rust/byteorder-1.0.0/Cargo.toml rename : third_party/rust/byteorder/benches/bench.rs => third_party/rust/byteorder-1.0.0/benches/bench.rs rename : third_party/rust/byteorder/src/lib.rs => third_party/rust/byteorder-1.0.0/src/lib.rs rename : third_party/rust/byteorder/src/new.rs => third_party/rust/byteorder-1.0.0/src/new.rs rename : third_party/rust/cfg-if/.cargo-checksum.json => third_party/rust/cfg-if-0.1.1/.cargo-checksum.json rename : third_party/rust/cfg-if/Cargo.toml => third_party/rust/cfg-if-0.1.1/Cargo.toml rename : third_party/rust/cfg-if/src/lib.rs => third_party/rust/cfg-if-0.1.1/src/lib.rs rename : third_party/rust/gcc/.cargo-checksum.json => third_party/rust/gcc-0.3.51/.cargo-checksum.json rename : third_party/rust/gcc/.travis.yml => third_party/rust/gcc-0.3.51/.travis.yml rename : third_party/rust/gcc/Cargo.toml => third_party/rust/gcc-0.3.51/Cargo.toml rename : third_party/rust/gcc/README.md => third_party/rust/gcc-0.3.51/README.md rename : third_party/rust/gcc/appveyor.yml => third_party/rust/gcc-0.3.51/appveyor.yml rename : third_party/rust/gcc/src/lib.rs => third_party/rust/gcc-0.3.51/src/lib.rs rename : third_party/rust/gcc/src/windows_registry.rs => third_party/rust/gcc-0.3.51/src/windows_registry.rs rename : third_party/rust/gcc/tests/support/mod.rs => third_party/rust/gcc-0.3.51/tests/support/mod.rs rename : third_party/rust/gcc/tests/test.rs => third_party/rust/gcc-0.3.51/tests/test.rs rename : third_party/rust/httparse/.cargo-checksum.json => third_party/rust/httparse-1.2.2/.cargo-checksum.json rename : third_party/rust/httparse/.travis.yml => third_party/rust/httparse-1.2.2/.travis.yml rename : third_party/rust/httparse/.travis_after.sh => third_party/rust/httparse-1.2.2/.travis_after.sh rename : third_party/rust/httparse/Cargo.toml => third_party/rust/httparse-1.2.2/Cargo.toml rename : third_party/rust/httparse/LICENSE-APACHE => third_party/rust/httparse-1.2.2/LICENSE-APACHE rename : third_party/rust/httparse/LICENSE-MIT => third_party/rust/httparse-1.2.2/LICENSE-MIT rename : third_party/rust/httparse/README.md => third_party/rust/httparse-1.2.2/README.md rename : third_party/rust/httparse/benches/parse.rs => third_party/rust/httparse-1.2.2/benches/parse.rs rename : third_party/rust/httparse/src/iter.rs => third_party/rust/httparse-1.2.2/src/iter.rs rename : third_party/rust/httparse/src/lib.rs => third_party/rust/httparse-1.2.2/src/lib.rs rename : third_party/rust/hyper/.cargo-checksum.json => third_party/rust/hyper-0.10.10/.cargo-checksum.json rename : third_party/rust/hyper/Cargo.toml => third_party/rust/hyper-0.10.10/Cargo.toml rename : third_party/rust/hyper/build.rs => third_party/rust/hyper-0.10.10/build.rs rename : third_party/rust/hyper/src/buffer.rs => third_party/rust/hyper-0.10.10/src/buffer.rs rename : third_party/rust/hyper/src/client/mod.rs => third_party/rust/hyper-0.10.10/src/client/mod.rs rename : third_party/rust/hyper/src/client/pool.rs => third_party/rust/hyper-0.10.10/src/client/pool.rs rename : third_party/rust/hyper/src/client/response.rs => third_party/rust/hyper-0.10.10/src/client/response.rs rename : third_party/rust/hyper/src/header/common/authorization.rs => third_party/rust/hyper-0.10.10/src/header/common/authorization.rs rename : third_party/rust/hyper/src/header/common/mod.rs => third_party/rust/hyper-0.10.10/src/header/common/mod.rs rename : third_party/rust/hyper/src/header/internals/cell.rs => third_party/rust/hyper-0.10.10/src/header/internals/cell.rs rename : third_party/rust/hyper/src/header/internals/vec_map.rs => third_party/rust/hyper-0.10.10/src/header/internals/vec_map.rs rename : third_party/rust/hyper/src/header/mod.rs => third_party/rust/hyper-0.10.10/src/header/mod.rs rename : third_party/rust/hyper/src/http/h1.rs => third_party/rust/hyper-0.10.10/src/http/h1.rs rename : third_party/rust/hyper/src/lib.rs => third_party/rust/hyper-0.10.10/src/lib.rs rename : third_party/rust/hyper/src/mock.rs => third_party/rust/hyper-0.10.10/src/mock.rs rename : third_party/rust/hyper/src/server/listener.rs => third_party/rust/hyper-0.10.10/src/server/listener.rs rename : third_party/rust/hyper/src/server/mod.rs => third_party/rust/hyper-0.10.10/src/server/mod.rs rename : third_party/rust/hyper/src/server/request.rs => third_party/rust/hyper-0.10.10/src/server/request.rs rename : third_party/rust/hyper/src/server/response.rs => third_party/rust/hyper-0.10.10/src/server/response.rs rename : third_party/rust/hyper/src/uri.rs => third_party/rust/hyper-0.10.10/src/uri.rs rename : third_party/rust/hyper/src/version.rs => third_party/rust/hyper-0.10.10/src/version.rs rename : third_party/rust/libc/.cargo-checksum.json => third_party/rust/libc-0.2.24/.cargo-checksum.json rename : third_party/rust/libc/.travis.yml => third_party/rust/libc-0.2.24/.travis.yml rename : third_party/rust/libc/Cargo.toml => third_party/rust/libc-0.2.24/Cargo.toml rename : third_party/rust/libc/README.md => third_party/rust/libc-0.2.24/README.md rename : third_party/rust/libc/appveyor.yml => third_party/rust/libc-0.2.24/appveyor.yml rename : third_party/rust/libc/ci/android-install-ndk.sh => third_party/rust/libc-0.2.24/ci/android-install-ndk.sh rename : third_party/rust/libc/ci/docker/aarch64-linux-android/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/aarch64-linux-android/Dockerfile rename : third_party/rust/libc/ci/docker/aarch64-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/aarch64-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/arm-linux-androideabi/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/arm-linux-androideabi/Dockerfile rename : third_party/rust/libc/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/arm-unknown-linux-gnueabihf/Dockerfile rename : third_party/rust/libc/ci/docker/i686-linux-android/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/i686-linux-android/Dockerfile rename : third_party/rust/libc/ci/docker/i686-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/i686-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/i686-unknown-linux-musl/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/i686-unknown-linux-musl/Dockerfile rename : third_party/rust/libc/ci/docker/mips-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/mips-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/mips-unknown-linux-musl/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/mips-unknown-linux-musl/Dockerfile rename : third_party/rust/libc/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/mips64-unknown-linux-gnuabi64/Dockerfile rename : third_party/rust/libc/ci/docker/mipsel-unknown-linux-musl/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/mipsel-unknown-linux-musl/Dockerfile rename : third_party/rust/libc/ci/docker/powerpc-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/powerpc-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/powerpc64-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/x86_64-linux-android/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/x86_64-linux-android/Dockerfile rename : third_party/rust/libc/ci/docker/x86_64-rumprun-netbsd/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/x86_64-rumprun-netbsd/Dockerfile rename : third_party/rust/libc/ci/docker/x86_64-unknown-linux-gnu/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/x86_64-unknown-linux-gnu/Dockerfile rename : third_party/rust/libc/ci/docker/x86_64-unknown-linux-musl/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/x86_64-unknown-linux-musl/Dockerfile rename : third_party/rust/libc/ci/docker/x86_64-unknown-openbsd/Dockerfile => third_party/rust/libc-0.2.24/ci/docker/x86_64-unknown-openbsd/Dockerfile rename : third_party/rust/libc/ci/run-docker.sh => third_party/rust/libc-0.2.24/ci/run-docker.sh rename : third_party/rust/libc/ci/run.sh => third_party/rust/libc-0.2.24/ci/run.sh rename : third_party/rust/libc/src/lib.rs => third_party/rust/libc-0.2.24/src/lib.rs rename : third_party/rust/libc/src/macros.rs => third_party/rust/libc-0.2.24/src/macros.rs rename : third_party/rust/libc/src/redox.rs => third_party/rust/libc-0.2.24/src/redox.rs rename : third_party/rust/libc/src/unix/bsd/apple/b32.rs => third_party/rust/libc-0.2.24/src/unix/bsd/apple/b32.rs rename : third_party/rust/libc/src/unix/bsd/apple/b64.rs => third_party/rust/libc-0.2.24/src/unix/bsd/apple/b64.rs rename : third_party/rust/libc/src/unix/bsd/apple/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/apple/mod.rs rename : third_party/rust/libc/src/unix/bsd/freebsdlike/dragonfly/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/freebsdlike/dragonfly/mod.rs rename : third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/aarch64.rs => third_party/rust/libc-0.2.24/src/unix/bsd/freebsdlike/freebsd/aarch64.rs rename : third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/freebsdlike/freebsd/mod.rs rename : third_party/rust/libc/src/unix/bsd/freebsdlike/freebsd/x86_64.rs => third_party/rust/libc-0.2.24/src/unix/bsd/freebsdlike/freebsd/x86_64.rs rename : third_party/rust/libc/src/unix/bsd/freebsdlike/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/freebsdlike/mod.rs rename : third_party/rust/libc/src/unix/bsd/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/mod.rs rename : third_party/rust/libc/src/unix/bsd/netbsdlike/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/netbsdlike/mod.rs rename : third_party/rust/libc/src/unix/bsd/netbsdlike/netbsd/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/netbsdlike/netbsd/mod.rs rename : third_party/rust/libc/src/unix/bsd/netbsdlike/openbsdlike/mod.rs => third_party/rust/libc-0.2.24/src/unix/bsd/netbsdlike/openbsdlike/mod.rs rename : third_party/rust/libc/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs => third_party/rust/libc-0.2.24/src/unix/bsd/netbsdlike/openbsdlike/openbsd.rs rename : third_party/rust/libc/src/unix/haiku/mod.rs => third_party/rust/libc-0.2.24/src/unix/haiku/mod.rs rename : third_party/rust/libc/src/unix/mod.rs => third_party/rust/libc-0.2.24/src/unix/mod.rs rename : third_party/rust/libc/src/unix/notbsd/android/b32/arm.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b32/arm.rs rename : third_party/rust/libc/src/unix/notbsd/android/b32/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b32/mod.rs rename : third_party/rust/libc/src/unix/notbsd/android/b32/x86.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b32/x86.rs rename : third_party/rust/libc/src/unix/notbsd/android/b64/aarch64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b64/aarch64.rs rename : third_party/rust/libc/src/unix/notbsd/android/b64/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b64/mod.rs rename : third_party/rust/libc/src/unix/notbsd/android/b64/x86_64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/b64/x86_64.rs rename : third_party/rust/libc/src/unix/notbsd/android/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/android/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/mips/mips32.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/mips/mips32.rs rename : third_party/rust/libc/src/unix/notbsd/linux/mips/mips64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/mips/mips64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/mips/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/mips/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b32/arm.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b32/arm.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b32/asmjs.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b32/asmjs.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b32/mips.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b32/mips.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b32/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b32/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b32/x86.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b32/x86.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b64/aarch64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b64/aarch64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b64/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b64/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b64/powerpc64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b64/powerpc64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/b64/x86_64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/b64/x86_64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/musl/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/musl/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b32/arm.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b32/arm.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b32/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b32/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b32/powerpc.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b32/powerpc.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b32/x86.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b32/x86.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b64/aarch64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b64/aarch64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b64/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b64/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b64/powerpc64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b64/powerpc64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b64/sparc64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b64/sparc64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/b64/x86_64.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/b64/x86_64.rs rename : third_party/rust/libc/src/unix/notbsd/linux/other/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/other/mod.rs rename : third_party/rust/libc/src/unix/notbsd/linux/s390x.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/linux/s390x.rs rename : third_party/rust/libc/src/unix/notbsd/mod.rs => third_party/rust/libc-0.2.24/src/unix/notbsd/mod.rs rename : third_party/rust/libc/src/unix/solaris/mod.rs => third_party/rust/libc-0.2.24/src/unix/solaris/mod.rs rename : third_party/rust/libc/src/unix/uclibc/mod.rs => third_party/rust/libc-0.2.24/src/unix/uclibc/mod.rs rename : third_party/rust/libc/src/unix/uclibc/x86_64/mod.rs => third_party/rust/libc-0.2.24/src/unix/uclibc/x86_64/mod.rs rename : third_party/rust/libc/src/windows.rs => third_party/rust/libc-0.2.24/src/windows.rs rename : third_party/rust/matches/.cargo-checksum.json => third_party/rust/matches-0.1.4/.cargo-checksum.json rename : third_party/rust/matches/Cargo.toml => third_party/rust/matches-0.1.4/Cargo.toml rename : third_party/rust/matches/lib.rs => third_party/rust/matches-0.1.4/lib.rs rename : third_party/rust/mime/.cargo-checksum.json => third_party/rust/mime-0.2.4/.cargo-checksum.json rename : third_party/rust/mime/Cargo.toml => third_party/rust/mime-0.2.4/Cargo.toml rename : third_party/rust/mime/src/lib.rs => third_party/rust/mime-0.2.4/src/lib.rs rename : third_party/rust/num_cpus/.cargo-checksum.json => third_party/rust/num_cpus-1.6.0/.cargo-checksum.json rename : third_party/rust/num_cpus/Cargo.toml => third_party/rust/num_cpus-1.6.0/Cargo.toml rename : third_party/rust/redox_syscall/.cargo-checksum.json => third_party/rust/redox_syscall-0.1.16/.cargo-checksum.json rename : third_party/rust/redox_syscall/Cargo.toml => third_party/rust/redox_syscall-0.1.16/Cargo.toml rename : third_party/rust/redox_syscall/src/arch/arm.rs => third_party/rust/redox_syscall-0.1.16/src/arch/arm.rs rename : third_party/rust/redox_syscall/src/arch/x86.rs => third_party/rust/redox_syscall-0.1.16/src/arch/x86.rs rename : third_party/rust/redox_syscall/src/arch/x86_64.rs => third_party/rust/redox_syscall-0.1.16/src/arch/x86_64.rs rename : third_party/rust/redox_syscall/src/call.rs => third_party/rust/redox_syscall-0.1.16/src/call.rs rename : third_party/rust/redox_syscall/src/data.rs => third_party/rust/redox_syscall-0.1.16/src/data.rs rename : third_party/rust/redox_syscall/src/flag.rs => third_party/rust/redox_syscall-0.1.16/src/flag.rs rename : third_party/rust/redox_syscall/src/number.rs => third_party/rust/redox_syscall-0.1.16/src/number.rs rename : third_party/rust/redox_syscall/src/scheme.rs => third_party/rust/redox_syscall-0.1.16/src/scheme.rs rename : third_party/rust/rustc-demangle/.cargo-checksum.json => third_party/rust/rustc-demangle-0.1.4/.cargo-checksum.json rename : third_party/rust/rustc-demangle/Cargo.toml => third_party/rust/rustc-demangle-0.1.4/Cargo.toml rename : third_party/rust/rustc-demangle/src/lib.rs => third_party/rust/rustc-demangle-0.1.4/src/lib.rs rename : third_party/rust/httparse/LICENSE-APACHE => third_party/rust/safemem/LICENSE-APACHE rename : third_party/rust/thread_local/.cargo-checksum.json => third_party/rust/thread_local-0.3.3/.cargo-checksum.json rename : third_party/rust/thread_local/.travis.yml => third_party/rust/thread_local-0.3.3/.travis.yml rename : third_party/rust/thread_local/Cargo.toml => third_party/rust/thread_local-0.3.3/Cargo.toml rename : third_party/rust/thread_local/src/lib.rs => third_party/rust/thread_local-0.3.3/src/lib.rs rename : third_party/rust/time/.cargo-checksum.json => third_party/rust/time-0.1.36/.cargo-checksum.json rename : third_party/rust/time/Cargo.toml => third_party/rust/time-0.1.36/Cargo.toml rename : third_party/rust/time/src/sys.rs => third_party/rust/time-0.1.36/src/sys.rs rename : third_party/rust/unicase/.cargo-checksum.json => third_party/rust/unicase-1.4.0/.cargo-checksum.json rename : third_party/rust/unicase/.travis.yml => third_party/rust/unicase-1.4.0/.travis.yml rename : third_party/rust/unicase/Cargo.toml => third_party/rust/unicase-1.4.0/Cargo.toml rename : third_party/rust/unicase/build.rs => third_party/rust/unicase-1.4.0/build.rs rename : third_party/rust/unicase/src/lib.rs => third_party/rust/unicase-1.4.0/src/lib.rs rename : third_party/rust/unicode-bidi/.cargo-checksum.json => third_party/rust/unicode-bidi-0.3.3/.cargo-checksum.json rename : third_party/rust/unicode-bidi/.travis.yml => third_party/rust/unicode-bidi-0.3.3/.travis.yml rename : third_party/rust/unicode-bidi/Cargo.toml => third_party/rust/unicode-bidi-0.3.3/Cargo.toml rename : third_party/rust/unicode-bidi/README.md => third_party/rust/unicode-bidi-0.3.3/README.md rename : third_party/rust/unicode-bidi/benches/basic.rs => third_party/rust/unicode-bidi-0.3.3/benches/basic.rs rename : third_party/rust/unicode-bidi/benches/udhr.rs => third_party/rust/unicode-bidi-0.3.3/benches/udhr.rs rename : third_party/rust/unicode-bidi/benches/udhr_data/README.md => third_party/rust/unicode-bidi-0.3.3/benches/udhr_data/README.md rename : third_party/rust/unicode-bidi/src/char_data/mod.rs => third_party/rust/unicode-bidi-0.3.3/src/char_data/mod.rs rename : third_party/rust/unicode-bidi/src/char_data/tables.rs => third_party/rust/unicode-bidi-0.3.3/src/char_data/tables.rs rename : third_party/rust/unicode-bidi/src/deprecated.rs => third_party/rust/unicode-bidi-0.3.3/src/deprecated.rs rename : third_party/rust/unicode-bidi/src/explicit.rs => third_party/rust/unicode-bidi-0.3.3/src/explicit.rs rename : third_party/rust/unicode-bidi/src/format_chars.rs => third_party/rust/unicode-bidi-0.3.3/src/format_chars.rs rename : third_party/rust/unicode-bidi/src/implicit.rs => third_party/rust/unicode-bidi-0.3.3/src/implicit.rs rename : third_party/rust/unicode-bidi/src/level.rs => third_party/rust/unicode-bidi-0.3.3/src/level.rs rename : third_party/rust/unicode-bidi/src/lib.rs => third_party/rust/unicode-bidi-0.3.3/src/lib.rs rename : third_party/rust/unicode-bidi/src/prepare.rs => third_party/rust/unicode-bidi-0.3.3/src/prepare.rs rename : third_party/rust/unicode-bidi/tests/conformance_tests.rs => third_party/rust/unicode-bidi-0.3.3/tests/conformance_tests.rs rename : third_party/rust/unicode-bidi/tools/generate.py => third_party/rust/unicode-bidi-0.3.3/tools/generate.py rename : third_party/rust/unreachable/.cargo-checksum.json => third_party/rust/unreachable-0.1.1/.cargo-checksum.json rename : third_party/rust/unreachable/Cargo.toml => third_party/rust/unreachable-0.1.1/Cargo.toml rename : third_party/rust/unreachable/README.md => third_party/rust/unreachable-0.1.1/README.md extra : rebase_source : 96e680e0cbbc32bd164eb91af60af1623dc888ea |
||
---|---|---|
.. | ||
benches | ||
examples | ||
src | ||
tests | ||
.cargo-checksum.json | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |
README.md
base64
It's base64. What more could anyone want?
Example
In Cargo.toml: base64 = "~0.6.0"
extern crate base64;
use base64::{encode, decode};
fn main() {
let a = b"hello world";
let b = "aGVsbG8gd29ybGQ=";
assert_eq!(encode(a), b);
assert_eq!(a, &decode(b).unwrap()[..]);
}
API
base64 exposes six functions:
fn encode<T: ?Sized + AsRef<[u8]>>(&T) -> String;
fn decode<T: ?Sized + AsRef<[u8]>>(&T) -> Result<Vec<u8>, DecodeError>;
fn encode_config<T: ?Sized + AsRef<[u8]>>(&T, Config) -> String;
fn encode_config_buf<T: ?Sized + AsRef<[u8]>>(&T, Config, &mut String);
fn decode_config<T: ?Sized + AsRef<[u8]>>(&T, Config) -> Result<Vec<u8>, DecodeError>;
fn decode_config_buf<T: ?Sized + AsRef<[u8]>>(&T, Config, &mut Vec<u8>) -> Result<(), DecodeError>;
STANDARD
, URL_SAFE
, URL_SAFE_NO_PAD
, and MIME
configuation structs are provided for convenience. encode
and decode
are convenience wrappers for the _config
functions called with the STANDARD
config, and they are themselves wrappers of the _buf
functions that allocate on the user's behalf. Encode produces valid padding absent a config that states otherwise; decode produces the same output for valid or omitted padding in all cases, but errors on invalid (superfluous) padding. Whitespace in the input to decode is an error for all modes except MIME
, which disregards it ("whitespace" according to POSIX-locale isspace
, meaning \n \r \f \t \v and space).
Config
exposes a constructor to allow custom combinations of character set, output padding, input whitespace permissiveness, linewrapping, and line ending character(s). The vast majority of usecases should be covered by the four provided, however.
Purpose
I have a fondness for small dependency footprints, ecosystems where you can pick and choose what functionality you need, and no more. Unix philosophy sort of thing I guess, many tiny utilities interoperating across a common interface. One time making a Twitter bot, I ran into the need to correctly pluralize arbitrary words. I found on npm a module that did nothing but pluralize words. Nothing else, just a couple of functions. I'd like for this to be that "just a couple of functions."
Developing
Benchmarks are in benches/
. Running them requires nightly rust, but rustup
makes it easy:
rustup run nightly cargo bench
Decoding is aided by some pre-calculated tables, which are generated by:
cargo run --example make_tables > src/tables.rs.tmp && mv src/tables.rs.tmp src/tables.rs
Profiling
On Linux, you can use perf for profiling. First, enable debug symbols in Cargo.toml. Don't commit this change, though, since it's usually not what you want (and costs some performance):
[profile.release]
debug = true
Then compile the benchmarks. (Just re-run them and ^C once the benchmarks start running; all that's needed is to recompile them.)
Run the benchmark binary with perf
(shown here filtering to one particular benchmark, which will make the results easier to read). perf
is only available to the root user on most systems as it fiddles with event counters in your CPU, so use sudo
. We need to run the actual benchmark binary, hence the path into target
. You can see the actual full path with rustup run nightly cargo bench -v
; it will print out the commands it runs. If you use the exact path that bench
outputs, make sure you get the one that's for the benchmarks, not the tests. You may also want to cargo clean
so you have only one benchmarks-
binary (they tend to accumulate).
sudo perf record target/release/deps/benchmarks-* --bench decode_10mib_reuse
Then analyze the results, again with perf:
sudo perf annotate -l
You'll see a bunch of interleaved rust source and assembly like this. The section with lib.rs:327
is telling us that 4.02% of samples saw the movzbl
aka bit shift as the active instruction. However, this percentage is not as exact as it seems due to a phenomenon called skid. Basically, a consequence of how fancy modern CPUs are is that this sort of instruction profiling is inherently inaccurate, especially in branch-heavy code.
lib.rs:322 0.70 : 10698: mov %rdi,%rax
2.82 : 1069b: shr $0x38,%rax
: if morsel == decode_tables::INVALID_VALUE {
: bad_byte_index = input_index;
: break;
: };
: accum = (morsel as u64) << 58;
lib.rs:327 4.02 : 1069f: movzbl (%r9,%rax,1),%r15d
: // fast loop of 8 bytes at a time
: while input_index < length_of_full_chunks {
: let mut accum: u64;
:
: let input_chunk = BigEndian::read_u64(&input_bytes[input_index..(input_index + 8)]);
: morsel = decode_table[(input_chunk >> 56) as usize];
lib.rs:322 3.68 : 106a4: cmp $0xff,%r15
: if morsel == decode_tables::INVALID_VALUE {
0.00 : 106ab: je 1090e <base64::decode_config_buf::hbf68a45fefa299c1+0x46e>
Fuzzing
This uses cargo-fuzz. See fuzz/fuzzers
for the available fuzzing scripts. To run, use an invocation like these:
rustup run nightly cargo fuzz run roundtrip
rustup run nightly cargo fuzz run roundtrip_no_pad
rustup run nightly cargo fuzz run roundtrip_mime -- -max_len=10240
rustup run nightly cargo fuzz run roundtrip_random_config -- -max_len=10240
License
This project is dual-licensed under MIT and Apache 2.0.