Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/android10/Rust-Cross-Platform-Development
/ functions
Functions
54 in github.com/android10/Rust-Cross-Platform-Development
⨍
Functions
54
◇
Types & classes
8
↓ 3 callers
Function
build_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 callers
Function
decrypt
Decrypts a String. Example: ``` use cryptor::decrypt; assert_eq!(decrypt("aGVsbG8="), "hello"); assert_eq!(decrypt(""), ""); ```
rust-library/cryptor/src/lib.rs:26
↓ 3 callers
Function
print
Prints a message to the standard output. Example: ``` use cryptor_global::console; console::out("hello"); ```
rust-library/cryptor_global/src/console.rs:51
↓ 3 callers
Function
project_dir_path
Returns the project directory path. ## Examples `$ rust-library/`
rust-library/cryptor_jni/src/bin/publish.rs:44
↓ 2 callers
Function
android_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 callers
Function
android_targets
()
rust-library/cryptor_jni/build.rs:180
↓ 2 callers
Function
crate_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 callers
Function
decrypt
(from: *const c_char)
rust-library/cryptor_c/src/lib.rs:15
↓ 2 callers
Function
encrypt
(to: *const c_char)
rust-library/cryptor_c/src/lib.rs:6
↓ 2 callers
Function
run_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 callers
Function
add_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 callers
Function
build_archiver
(archiver_path: &str)
rust-library/cryptor_jni/build.rs:164
↓ 1 callers
Function
build_linker
(linker_path: &str)
rust-library/cryptor_jni/build.rs:172
↓ 1 callers
Function
copy_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 callers
Function
create_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 callers
Function
create_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 callers
Function
create_config_dir
(dir_path: &PathBuf)
rust-library/cryptor_global/src/io.rs:33
↓ 1 callers
Function
create_config_file
(file_path: &PathBuf)
rust-library/cryptor_global/src/io.rs:37
↓ 1 callers
Method
decrypt
* 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 callers
Function
encrypt
Encrypts a String. Example: ``` use cryptor::encrypt; assert_eq!(encrypt("hello"), "aGVsbG8="); assert_eq!(encrypt(""), ""); ```
rust-library/cryptor/src/lib.rs:14
↓ 1 callers
Method
encrypt
* 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 callers
Function
out
Prints a message to the standard output. Example: ``` use cryptor_global::console; console::out("hello"); ```
rust-library/cryptor_global/src/console.rs:40
↓ 1 callers
Function
publish_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 callers
Function
release_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 callers
Function
rerun_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
Method
EncryptDecryptComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:118
Function
Java_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
Function
Java_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
Method
MainScreenComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:77
Method
TopBarComponent
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:103
Function
android_jni_dir_path_includes_proper_folder_names
()
rust-library/cryptor_jni/src/bin/publish.rs:170
Function
android_targets_and_config_same_size
()
rust-library/cryptor_jni/build.rs:270
Function
android_targets_links_to_proper_target_config
()
rust-library/cryptor_jni/build.rs:276
Function
android_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
Function
crate_file_path_for_target_includes_proper_folder_names
()
rust-library/cryptor_jni/src/bin/publish.rs:183
Function
is_release
Returns whehter the current build is Release.
rust-library/cryptor_global/src/system.rs:6
Method
loadJNILibraries
android-sample/app/src/main/kotlin/com/fernandocejas/sample/AndroidApplication.kt:27
Function
main
()
rust-library/cryptor_jni/build.rs:255
Function
main
()
rust-library/cryptor_jni/src/bin/publish.rs:157
Function
main
()
rust-library/cryptor_jni/src/bin/release.rs:65
Method
ndk_dir
()
rust-library/cryptor_jni/build.rs:130
Method
onCreate
android-sample/app/src/main/kotlin/com/fernandocejas/sample/AndroidApplication.kt:22
Method
onCreate
android-sample/app/src/main/kotlin/com/fernandocejas/sample/MainActivity.kt:56
Function
proper_project_dir_path
()
rust-library/cryptor_jni/src/bin/publish.rs:195
Function
test_build_android_release_argument
()
rust-library/cryptor_jni/src/bin/release.rs:79
Function
test_build_android_release_arguments_for_all_targets
()
rust-library/cryptor_jni/src/bin/release.rs:87
Function
test_decrypt_empty_string
()
rust-library/cryptor/tests/integration_tests.rs:24
Function
test_decrypt_invalid_base64_string
()
rust-library/cryptor/tests/integration_tests.rs:33
Function
test_decrypt_string
()
rust-library/cryptor_c/src/lib.rs:39
Function
test_decrypt_string
()
rust-library/cryptor/tests/integration_tests.rs:14
Function
test_encrypt_string
()
rust-library/cryptor_c/src/lib.rs:27
Function
test_encrypt_string
()
rust-library/cryptor/tests/integration_tests.rs:4
Function
test_given_debug_profile_then_release_returns_false
()
rust-library/cryptor_global/src/system.rs:33
Method
toolchains_dir
()
rust-library/cryptor_jni/build.rs:139