Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"$comment":"This file only protects against accidental modifications. It is not a security mechanism and does not protect against malicious changes.","files":{"Cargo.toml":"34de6835ef5df615acadc4071bb9d38565b23fbe5a9087a7cf30cc7ccfe02a20","Cargo.toml.orig":"06142c21559d66a76c8740d8c505a2f7ed9078c45e7baee49dac58a131362640","maven/pom.xml":"5468629ab3793f4768c0527b8ecca25219a00b5d9503d1ad657cc664c87e9081","maven/rustls/rustls-platform-verifier/0.1.1/_remote.repositories":"df2cae67b1175c951353c484a675f9b56a57634e26b1b6cb38ddd74bd180c1ba","maven/rustls/rustls-platform-verifier/0.1.1/rustls-platform-verifier-0.1.1.aar":"667292cadd8fa589229dd0f716541236a761f29b774930868d218175633830fd","maven/rustls/rustls-platform-verifier/0.1.1/rustls-platform-verifier-0.1.1.pom":"5468629ab3793f4768c0527b8ecca25219a00b5d9503d1ad657cc664c87e9081","maven/rustls/rustls-platform-verifier/maven-metadata-local.xml":"151ab31e01d7ad176b02f2b9104d86450a383c4c16281e12eb87ed39ad6bf660","src/lib.rs":"d24acbec7495ccbbe7a3760bad1e7a80cb8fa7e2e8a05831798261c749e86c73"},"package":"f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f"}
|
||||
@@ -0,0 +1,26 @@
|
||||
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
||||
#
|
||||
# When uploading crates to the registry Cargo will automatically
|
||||
# "normalize" Cargo.toml files for maximal compatibility
|
||||
# with all versions of Cargo and also rewrite `path` dependencies
|
||||
# to registry (e.g., crates.io) dependencies.
|
||||
#
|
||||
# If you are reading this file be aware that the original Cargo.toml
|
||||
# will likely look very different (and much more reasonable).
|
||||
# See Cargo.toml.orig for the original contents.
|
||||
|
||||
[package]
|
||||
edition = "2021"
|
||||
name = "rustls-platform-verifier-android"
|
||||
version = "0.1.1"
|
||||
include = [
|
||||
"src/*",
|
||||
"maven/pom.xml",
|
||||
"maven/rustls/rustls-platform-verifier/**/",
|
||||
"maven/rustls/rustls-platform-verifier/maven-metadata-local.xml",
|
||||
]
|
||||
description = "The internal JVM support component of the rustls-platform-verifier crate. You shouldn't depend on this directly."
|
||||
license = "MIT OR Apache-2.0"
|
||||
repository = "https://github.com/rustls/rustls-platform-verifier"
|
||||
|
||||
[dependencies]
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
[package]
|
||||
name = "rustls-platform-verifier-android"
|
||||
version = "0.1.1"
|
||||
description = "The internal JVM support component of the rustls-platform-verifier crate. You shouldn't depend on this directly."
|
||||
repository = "https://github.com/rustls/rustls-platform-verifier"
|
||||
license = "MIT OR Apache-2.0"
|
||||
edition = "2021"
|
||||
|
||||
# Explicitly include the Maven local repository for the Android component.
|
||||
# While not checked into the repository, it is generated for releases and other contexts.
|
||||
include = [
|
||||
"src/*",
|
||||
"maven/pom.xml",
|
||||
"maven/rustls/rustls-platform-verifier/**/",
|
||||
"maven/rustls/rustls-platform-verifier/maven-metadata-local.xml",
|
||||
]
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>rustls</groupId>
|
||||
<artifactId>rustls-platform-verifier</artifactId>
|
||||
<version>0.1.1</version>
|
||||
<packaging>aar</packaging>
|
||||
<description>The internal JVM support component of the rustls-platform-verifier Rust crate</description>
|
||||
</project>
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
#NOTE: This is a Maven Resolver internal implementation file, its format can be changed without prior notice.
|
||||
#Mon Jul 29 09:22:46 EDT 2024
|
||||
rustls-platform-verifier-0.1.1.aar>=
|
||||
rustls-platform-verifier-0.1.1.pom>=
|
||||
BIN
Binary file not shown.
+10
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>rustls</groupId>
|
||||
<artifactId>rustls-platform-verifier</artifactId>
|
||||
<version>0.1.1</version>
|
||||
<packaging>aar</packaging>
|
||||
<description>The internal JVM support component of the rustls-platform-verifier Rust crate</description>
|
||||
</project>
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<metadata>
|
||||
<groupId>rustls</groupId>
|
||||
<artifactId>rustls-platform-verifier</artifactId>
|
||||
<versioning>
|
||||
<release>0.1.1</release>
|
||||
<versions>
|
||||
<version>0.1.1</version>
|
||||
</versions>
|
||||
<lastUpdated>20240729132246</lastUpdated>
|
||||
</versioning>
|
||||
</metadata>
|
||||
@@ -0,0 +1,75 @@
|
||||
//! # rustls-platform-verifier-android
|
||||
//!
|
||||
//! This crate is an implementation detail of the actual [rustls-platform-verifier](https://github.com/rustls/rustls-platform-verifier) crate.
|
||||
//!
|
||||
//! It contains no Rust code and is solely intended as a convenient delivery mechanism for the supporting Kotlin code that the main crate
|
||||
//! requires to perform TLS certificate validation using Android's APIs.
|
||||
//!
|
||||
//! Other crates should not directly depend on this crate in any way, as nothing about it is considered stable and it is probably useless elsewhere.
|
||||
//!
|
||||
//! ## Details
|
||||
//!
|
||||
//! Note: Everything in this section is subject to change at any time. Semver may not be followed.
|
||||
//!
|
||||
//! ### Why?
|
||||
//!
|
||||
//! It was the best middle ground between several tradeoffs. The important ones, in priority order, are:
|
||||
//! - Automatically keeping component versions in sync
|
||||
//! - Allowing well-tested and well-known `cargo` dependency management patterns to apply everywhere
|
||||
//! - Providing a smooth developer experience as an Android consumer of `rustls-platform-verifier`
|
||||
//!
|
||||
//! Firstly, what alternatives are available for distributing the component? The other two known are source distribution in some form (here, it will be through crates.io)
|
||||
//! and Maven Central. Starting with the first, its become infeasible due to toolchain syncing requirements. If the Android component is
|
||||
//! built as part of the host app's Gradle build, then it becomes subject to any Gradle or Android Gradle Plugin incompatibilities/requirements. In practice this means
|
||||
//! the AGP version between this project and the main application have to match all the time. Sometimes this works, but it becomes challenging/unfeasible
|
||||
//! during yearly toolchain/SDK upgrades and is not maintainable long term. Note that this is the _only_ option in this section which retains compatibility
|
||||
//! with Cargo's Git dependency patching.
|
||||
//!
|
||||
//! Next, Maven Central. This is considered the standard way of distributing public Android dependencies. There are two downsides to this
|
||||
//! approach: version synchronization and publishing overhead. Version syncing is the hardest part: There's not a good way to know what version
|
||||
//! a crate is that doesn't hurt the Cargo part of the build or damage functionality. So instead of making assumptions at runtime, we would need to do
|
||||
//! clunky and manual version counting with an extra error case. Less importantly, the admin overhead of Maven Central is non-zero so its good to avoid
|
||||
//! if possible for such a small need.
|
||||
//!
|
||||
//! It is also worth calling out a third set of much worse options: requiring users to manually download and install the Android component
|
||||
//! on each update, which magnifies the version syncing problem with lots of user overhead and then deleting the component outright. A rewrite
|
||||
//! could be done with raw JNI calls, but this would easily be 3x the size of the existing implementation and require huge amounts of `unsafe`
|
||||
//! to review then audit.
|
||||
//!
|
||||
//! ### The solution
|
||||
//!
|
||||
//! The final design was built to avoid the pitfalls the previous two options mentioned. To build it, we rely on CI and packaging scripts to build
|
||||
//! the Android component into a prebuilt AAR file before creating a release. Next, a [on-disk Maven repository](https://maven.apache.org/repositories/local.html)
|
||||
//! is hosted inside of this repository. Only the unchanging file structure of it is kept checked-in, to avoid churn. The remaining parts are filled in
|
||||
//! during the packaging/release process, before being included in `cargo package` via an `include` Cargo.toml directive. Finally, once the repository has had
|
||||
//! its artifacts added the crate containing the Maven repository is published to crates.io. Then, the main crate ensures it's downloaded when an Android target
|
||||
//! is compiled via a platform-specific dependency.
|
||||
//!
|
||||
//! On [the Gradle side](https://github.com/rustls/rustls-platform-verifier/tree/main#gradle-setup), we include a very small snippet of code for users to include in their `settings.gradle` file
|
||||
//! to dynamically locate the local maven repository on disk automatically based off Cargo's current version of it. The script is configuration cache friendly and
|
||||
//! doesn't impact performance either. When the script is run, it finds the cargo-cached download of the crate and tells Gradle it can find the Android component there
|
||||
//! when it gets sourced into the hosting application's build tree.
|
||||
//!
|
||||
//! Assuming a properly configured Gradle project, the slow (~500ms) script should only run once per Gradle sync while the `android-release-support` crate
|
||||
//! remains untouched. This is due to the configuration cache previously mentioned and is what ensures performance on-par with a "normal" Maven repository.
|
||||
//! Upon any version updates (semver, Git refs, etc), the change will be detected as-intended by Gradle, break the cache, and the project will update the dependency reference to the new AAR file.
|
||||
//!
|
||||
//! ### Precompiled artifacts?
|
||||
//!
|
||||
//! For some, the notion of shipping something pre-compiled with an existing source distribution might seem incorrect, or insecure. However in this specific case,
|
||||
//! putting aside the fact shipping Kotlin code doesn't work (see above), there are many reasons this isn't the case:
|
||||
//! - Shipping pre-compiled artifacts is normal in the Java ecosystem. Maven Central and other package repositories do the same thing and serve `.jar` downloads.
|
||||
//! - Those not using Android will never download the pre-compiled AAR file.
|
||||
//! - The artifacts are incredibly easy to reproduce given an identical compilation toolchain.
|
||||
//! - The artifacts are not native executables, or raw `.jar` files, so they can't be accidentally executed on a host system.
|
||||
//!
|
||||
//! ## Summary
|
||||
//!
|
||||
//! In summary, the selected distribution method avoids most of the previous pitfalls while still balancing a good experience for `cargo` and Gradle users. Some of its
|
||||
//! positive properties include:
|
||||
//! - Full compatibility with Cargo's dependency management, including Git patching[^1]
|
||||
//! - No version checking or synchronization required
|
||||
//! - Painless and harmless to integrate into an Android app's build system
|
||||
//! - Low maintenance for the main crate maintainers'
|
||||
//!
|
||||
//! [^1]: The Git reference being used must have the local maven repository built and checked-in first.
|
||||
Reference in New Issue
Block a user