@@ -9,22 +9,22 @@ annotation class AndroidRustDslMarker
99@Suppress(" unused" )
1010open class AndroidRustExtension : AndroidRustConfiguration () {
1111 /* *
12- * Specify minimum supported rust version.
12+ * Specify minimum supported Rust version.
1313 *
1414 * Plugin will automatically use `rustup update` command to
1515 * update rust version in case installed versions is not high enough.
1616 */
1717 var minimumSupportedRustVersion = " "
1818
1919 /* *
20- * Configuration map of all rust libraries to build.
20+ * Configuration map of all Rust libraries to build.
2121 *
22- * Keys of this map are rust crates names.
22+ * Keys of this map are Rust crates names.
2323 */
2424 var modules = mutableMapOf<String , AndroidRustModule >()
2525
2626 /* *
27- * Configure rust module/library to build.
27+ * Configure Rust module/library to build.
2828 *
2929 * @param name Rust crate name.
3030 */
@@ -37,7 +37,7 @@ open class AndroidRustExtension : AndroidRustConfiguration() {
3737@Suppress(" unused" )
3838class AndroidRustModule : AndroidRustConfiguration () {
3939 /* *
40- * Path to the rust project folder.
40+ * Path to the Rust project folder.
4141 *
4242 * This is the folder containing `Cargo.toml` file.
4343 */
@@ -46,22 +46,21 @@ class AndroidRustModule : AndroidRustConfiguration() {
4646 /* *
4747 * All supported build type configurations.
4848 *
49- * Keys of this map should correspond to this project's build variants.
49+ * Keys of this map should correspond to the current project build variants.
5050 */
5151 var buildTypes = hashMapOf(
5252 " debug" to AndroidRustBuildType ().also {
5353 it.profile = " dev"
5454 },
5555 " release" to AndroidRustBuildType ().also {
5656 it.profile = " release"
57- it.disableAbiOptimization = true
5857 },
5958 )
6059
6160 /* *
62- * Configure rust build options.
61+ * Configure Rust build options.
6362 *
64- * @param name this project's build variant.
63+ * @param name current project build variant.
6564 */
6665 fun buildType (name : String , configure : AndroidRustBuildType .() -> Unit ) {
6766 buildTypes.getOrPut(name, ::AndroidRustBuildType ).configure()
0 commit comments