MCPcopy Create free account

hub / github.com/denzp/rust-ptx-builder / functions

Functions86 in github.com/denzp/rust-ptx-builder

↓ 13 callersMethodbuild
Performs an actual build: runs `cargo` with proper flags and environment.
src/builder.rs:169
↓ 12 callersMethoddisable_colors
Disable colors for internal calls to `cargo`.
src/builder.rs:144
↓ 10 callersMethodkind
(&self)
src/error.rs:70
↓ 8 callersFunctioncleanup_temp_location
()
tests/builder.rs:388
↓ 6 callersMethodget_assembly_path
Returns path to PTX assembly file. # Usage Can be used from `build.rs` script to provide Rust with the path via environment variable: ```no_run use p
src/builder.rs:337
↓ 6 callersMethodrun
(&mut self)
src/executable/runner.rs:57
↓ 5 callersMethodget_name
(&self)
src/executable/mod.rs:38
↓ 4 callersMethodwith_args
(&mut self, args: I)
src/executable/runner.rs:31
↓ 3 callersMethoddependencies
Returns a list of crate dependencies. # Usage Can be used from `build.rs` script to notify Cargo the dependencies, so it can automatically rebuild on
src/builder.rs:367
↓ 3 callersMethodget_deps_file_prefix
Returns deps file filename prefix.
src/source.rs:109
↓ 3 callersMethodwith_cwd
(&mut self, path: P)
src/executable/runner.rs:49
↓ 2 callersFunctionparse_executable_version
(executable: &E)
src/executable/runner.rs:104
↓ 2 callersMethodset_crate_type
Set crate type that needs to be built. Mandatory for mixed crates - that have both `lib.rs` and `main.rs`, otherwise Cargo won't know which to build:
src/builder.rs:163
↓ 2 callersMethodwith_env
(&mut self, key: K, val: V)
src/executable/runner.rs:40
↓ 1 callersMethodbuild
(&self, builder: Builder)
src/reporter.rs:49
↓ 1 callersMethodbuild_inner
(&self, builder: &Builder)
src/reporter.rs:58
↓ 1 callersMethodcheck_version
(&self)
src/executable/runner.rs:85
↓ 1 callersMethodget_current_version
(&self)
src/executable/mod.rs:54
↓ 1 callersMethodget_deps_file_contents
(&self)
src/builder.rs:399
↓ 1 callersMethodget_name
Returns crate name.
src/source.rs:134
↓ 1 callersMethodget_output_file_prefix
Returns PTX assmbly filename prefix.
src/source.rs:104
↓ 1 callersMethodget_output_path
Returns temporary crate build location.
src/source.rs:144
↓ 1 callersMethodget_path
Returns crate root path.
src/source.rs:139
↓ 1 callersMethodget_required_version
(&self)
src/executable/mod.rs:50
↓ 1 callersMethodget_verification_hint
(&self)
src/executable/mod.rs:42
↓ 1 callersMethodget_version_hint
(&self)
src/executable/mod.rs:46
↓ 1 callersMethodprepare_output
(&self, output_path: PathBuf, cargo_stderr: &str)
src/builder.rs:243
↓ 1 callersMethodset_profile
Set build profile.
src/builder.rs:150
Methodanalyse
Try to locate a crate at the `path` and collect needed information.
src/source.rs:32
Methodbacktrace
(&self)
src/error.rs:58
Functionbreakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/faulty-crate/src/lib.rs:10
Functionbreakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/mixed-crate/src/lib.rs:13
Functionbreakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/app-crate/src/main.rs:13
Functionbreakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/sample-crate/src/lib.rs:13
Methodcause
(&self)
src/error.rs:54
Methodderef
(&self)
src/builder.rs:441
Methoddisable_colors
Controls whether colors should be used in the error log.
src/reporter.rs:115
Functiondummy_panic_handler
(_info: &::core::panic::PanicInfo)
tests/fixtures/mixed-crate/src/main.rs:18
Methodfmt
(&self, f: &mut fmt::Formatter)
src/reporter.rs:137
Methodfmt
(&self, formatter: &mut fmt::Formatter)
src/error.rs:64
Methodfmt
(&self, f: &mut fmt::Formatter)
src/builder.rs:425
Methodfrom
(kind: BuildErrorKind)
src/error.rs:76
Methodget_current_version
Returns the current version of the executable.
src/executable/mod.rs:23
Methodget_hash
(&self)
src/source.rs:154
Methodget_name
(&self)
tests/executable.rs:50
Methodget_required_version
(&self)
tests/executable.rs:62
Methodget_verification_hint
(&self)
tests/executable.rs:54
Methodget_version_hint
(&self)
tests/executable.rs:58
Methodis_build_needed
Returns bool indicating whether the actual build is needed. Behavior is consistent with [`BuildStatus::NotNeeded`](enum.BuildStatus.html#variant.NotN
src/builder.rs:133
Methodload_cached_build_command
(output_path: &Path)
src/builder.rs:294
Functionmain
()
tests/fixtures/mixed-crate/src/main.rs:8
Methodname
(&self)
src/error.rs:50
Methodnew
Construct a builder for device crate at `path`. Can also be the same crate, for single-source mode: ``` no_run use ptx_builder::prelude::*; # use ptx
src/builder.rs:119
Methodnew
(executable: Ex)
src/executable/runner.rs:24
Methodoutput_is_not_verbose
(line: &&str)
src/builder.rs:286
Methodprefix_each_line
(self, prefix: T)
src/reporter.rs:128
Methodprint
Creates instance of the printer.
src/reporter.rs:107
Functionshould_build_application_crate
()
tests/builder.rs:66
Functionshould_build_mixed_crate_bin
()
tests/builder.rs:129
Functionshould_build_mixed_crate_lib
()
tests/builder.rs:94
Functionshould_check_existence_of_crate_path
()
src/source.rs:251
Functionshould_check_exit_code
()
tests/executable.rs:21
Functionshould_check_validity_of_crate_path
()
src/source.rs:264
Functionshould_find_app_crate_names
()
src/source.rs:194
Functionshould_find_crate_names
()
src/source.rs:163
Functionshould_find_mixed_crate_names
()
src/source.rs:225
Functionshould_handle_rebuild_without_changes
()
tests/builder.rs:164
Functionshould_not_get_built_from_rls
()
tests/builder.rs:357
Functionshould_not_get_built_recursively
()
tests/builder.rs:373
Functionshould_not_provide_output
()
tests/executable.rs:68
Functionshould_provide_application_crate_source_files
()
tests/builder.rs:322
Functionshould_provide_crate_source_files
()
tests/builder.rs:287
Functionshould_provide_output
()
tests/executable.rs:10
Functionshould_provide_output_path
()
src/source.rs:277
Functionshould_provide_output_path
()
tests/builder.rs:18
Functionshould_report_about_build_failure
()
tests/builder.rs:231
Functionshould_report_in_cargo_style
()
tests/reporter.rs:7
Functionshould_write_assembly
()
tests/builder.rs:38
Functionshould_write_assembly_in_debug_mode
()
tests/builder.rs:198
Methodstore_cached_build_command
(output_path: &Path, command: &str)
src/builder.rs:301
Functionthe_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/faulty-crate/src/lib.rs:5
Functionthe_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/mixed-crate/src/main.rs:13
Functionthe_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/mixed-crate/src/lib.rs:8
Functionthe_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/app-crate/src/main.rs:8
Functionthe_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/sample-crate/src/lib.rs:8
Methodwith_env_var
Creates an instance of the adapter that will provide PTX assembly path to Rust via `env_name` environment variable. The PTX assembly can later be use
src/reporter.rs:38