MCPcopy Create free account

hub / github.com/android10/Rust-Cross-Platform-Development / functions

Functions54 in github.com/android10/Rust-Cross-Platform-Development

↓ 3 callersFunctionbuild_command_args_for_target
Build `cargo` arguments for building android targets. ## Example ``` cargo build --target armv7-linux-androideabi --release ```
rust-library/cryptor_jni/src/bin/release.rs:54
↓ 3 callersFunctiondecrypt
Decrypts a String. Example: ``` use cryptor::decrypt; assert_eq!(decrypt("aGVsbG8="), "hello"); assert_eq!(decrypt(""), ""); ```
rust-library/cryptor/src/lib.rs:26
↓ 3 callersFunctionprint
Prints a message to the standard output. Example: ``` use cryptor_global::console; console::out("hello"); ```
rust-library/cryptor_global/src/console.rs:51
↓ 3 callersFunctionproject_dir_path
Returns the project directory path. ## Examples `$ rust-library/`
rust-library/cryptor_jni/src/bin/publish.rs:44
↓ 2 callersFunctionandroid_jni_dir_path
Returns the jni directory path in the android project where the release version of this crate should be placed. ## Arguments `android_jni_lib_folder
rust-library/cryptor_jni/src/bin/publish.rs:70
↓ 2 callersFunctionandroid_targets
()
rust-library/cryptor_jni/build.rs:180
↓ 2 callersFunctioncrate_file_path_for_target
Returns the file path where the release version of this crate is placed. ## Arguments `project_dir_path` - A string slice that holds thsi project di
rust-library/cryptor_jni/src/bin/publish.rs:112
↓ 2 callersFunctiondecrypt
(from: *const c_char)
rust-library/cryptor_c/src/lib.rs:15
↓ 2 callersFunctionencrypt
(to: *const c_char)
rust-library/cryptor_c/src/lib.rs:6
↓ 2 callersFunctionrun_command
Runs a command line command. ## Example: ``` use cryptor_global::console::run_command; let mut command_args = Vec::new(); command_args.push("ls"); c
rust-library/cryptor_global/src/console.rs:20
↓ 1 callersFunctionadd_android_targets_to_toolchain
Install android targets each for each toolchaing using `rustup`, like so: `rustup target add --toolchain <toolchain> <target>...` Cross-compilation:
rust-library/cryptor_jni/build.rs:243
↓ 1 callersFunctionbuild_archiver
(archiver_path: &str)
rust-library/cryptor_jni/build.rs:164
↓ 1 callersFunctionbuild_linker
(linker_path: &str)
rust-library/cryptor_jni/build.rs:172
↓ 1 callersFunctioncopy_file
Copies the contents of one file to another. - https://doc.rust-lang.org/std/fs/fn.copy.html
rust-library/cryptor_global/src/io.rs:46
↓ 1 callersFunctioncreate_android_targets_config_file
The file `.cargo/config` is necessary to be able to allow `cargo` to create our android targets. - https://doc.rust-lang.org/cargo/reference/config.h
rust-library/cryptor_jni/build.rs:223
↓ 1 callersFunctioncreate_cargo_config_file
Creates a cargo config file in the in the directory passed as a parameter. Example: ``` use std::env; use cryptor_global::io; let mut config_file = i
rust-library/cryptor_global/src/io.rs:21
↓ 1 callersFunctioncreate_config_dir
(dir_path: &PathBuf)
rust-library/cryptor_global/src/io.rs:33
↓ 1 callersFunctioncreate_config_file
(file_path: &PathBuf)
rust-library/cryptor_global/src/io.rs:37
↓ 1 callersMethoddecrypt
* Decrypt a string. * * This is an external call to Rust using * the Java Native Interface (JNI). * * @link https://developer
android-sample/app/src/main/kotlin/com/fernandocejas/rust/Cryptor.kt:31
↓ 1 callersFunctionencrypt
Encrypts a String. Example: ``` use cryptor::encrypt; assert_eq!(encrypt("hello"), "aGVsbG8="); assert_eq!(encrypt(""), ""); ```
rust-library/cryptor/src/lib.rs:14
↓ 1 callersMethodencrypt
* Encrypt a string. * * This is an external call to Rust using * the Java Native Interface (JNI). * * @link https://developer
android-sample/app/src/main/kotlin/com/fernandocejas/rust/Cryptor.kt:20
↓ 1 callersFunctionout
Prints a message to the standard output. Example: ``` use cryptor_global::console; console::out("hello"); ```
rust-library/cryptor_global/src/console.rs:40
↓ 1 callersFunctionpublish_jni_lib_to_android_project
Copy the release version of each android target to the corresponding directory in the android project.
rust-library/cryptor_jni/src/bin/publish.rs:131
↓ 1 callersFunctionrelease_android_targets
Release android targets from Configuration. Check ['build.rs'] File. ## Example ``` cargo build --target armv7-linux-androideabi --release cargo bui
rust-library/cryptor_jni/src/bin/release.rs:37
↓ 1 callersFunctionrerun_if_changed
Tells Cargo that if the given file changes, to rerun the build script file passed as a parameter. We communicate with cargo from within the script by
rust-library/cryptor_global/src/system.rs:23
MethodEncryptDecryptComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:118
FunctionJava_com_fernandocejas_rust_Cryptor_decrypt
This keeps Rust from "mangling" the name so it is unique (crate).
rust-library/cryptor_jni/src/lib.rs:73
FunctionJava_com_fernandocejas_rust_Cryptor_encrypt
This keeps Rust from "mangling" the name so it is unique (crate).
rust-library/cryptor_jni/src/lib.rs:45
MethodMainScreenComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:77
MethodTopBarComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:103
Functionandroid_jni_dir_path_includes_proper_folder_names
()
rust-library/cryptor_jni/src/bin/publish.rs:170
Functionandroid_targets_and_config_same_size
()
rust-library/cryptor_jni/build.rs:270
Functionandroid_targets_links_to_proper_target_config
()
rust-library/cryptor_jni/build.rs:276
Functionandroid_tool_chain_path
This returns the android tool chain path based on current host operating system. NDK tag according to the host OS: ``` -----------------------------
rust-library/cryptor_jni/build.rs:102
Functioncrate_file_path_for_target_includes_proper_folder_names
()
rust-library/cryptor_jni/src/bin/publish.rs:183
Functionis_release
Returns whehter the current build is Release.
rust-library/cryptor_global/src/system.rs:6
MethodloadJNILibraries
android-sample/app/src/main/kotlin/com/fernandocejas/sample/AndroidApplication.kt:27
Functionmain
()
rust-library/cryptor_jni/build.rs:255
Functionmain
()
rust-library/cryptor_jni/src/bin/publish.rs:157
Functionmain
()
rust-library/cryptor_jni/src/bin/release.rs:65
Methodndk_dir
()
rust-library/cryptor_jni/build.rs:130
MethodonCreate
android-sample/app/src/main/kotlin/com/fernandocejas/sample/AndroidApplication.kt:22
MethodonCreate
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:56
Functionproper_project_dir_path
()
rust-library/cryptor_jni/src/bin/publish.rs:195
Functiontest_build_android_release_argument
()
rust-library/cryptor_jni/src/bin/release.rs:79
Functiontest_build_android_release_arguments_for_all_targets
()
rust-library/cryptor_jni/src/bin/release.rs:87
Functiontest_decrypt_empty_string
()
rust-library/cryptor/tests/integration_tests.rs:24
Functiontest_decrypt_invalid_base64_string
()
rust-library/cryptor/tests/integration_tests.rs:33
Functiontest_decrypt_string
()
rust-library/cryptor_c/src/lib.rs:39
Functiontest_decrypt_string
()
rust-library/cryptor/tests/integration_tests.rs:14
Functiontest_encrypt_string
()
rust-library/cryptor_c/src/lib.rs:27
Functiontest_encrypt_string
()
rust-library/cryptor/tests/integration_tests.rs:4
Functiontest_given_debug_profile_then_release_returns_false
()
rust-library/cryptor_global/src/system.rs:33
Methodtoolchains_dir
()
rust-library/cryptor_jni/build.rs:139