Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/denzp/rust-ptx-builder
/ functions
Functions
86 in github.com/denzp/rust-ptx-builder
⨍
Functions
86
◇
Types & classes
20
↓ 13 callers
Method
build
Performs an actual build: runs `cargo` with proper flags and environment.
src/builder.rs:169
↓ 12 callers
Method
disable_colors
Disable colors for internal calls to `cargo`.
src/builder.rs:144
↓ 10 callers
Method
kind
(&self)
src/error.rs:70
↓ 8 callers
Function
cleanup_temp_location
()
tests/builder.rs:388
↓ 6 callers
Method
get_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 callers
Method
run
(&mut self)
src/executable/runner.rs:57
↓ 5 callers
Method
get_name
(&self)
src/executable/mod.rs:38
↓ 4 callers
Method
with_args
(&mut self, args: I)
src/executable/runner.rs:31
↓ 3 callers
Method
dependencies
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 callers
Method
get_deps_file_prefix
Returns deps file filename prefix.
src/source.rs:109
↓ 3 callers
Method
with_cwd
(&mut self, path: P)
src/executable/runner.rs:49
↓ 2 callers
Function
parse_executable_version
(executable: &E)
src/executable/runner.rs:104
↓ 2 callers
Method
set_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 callers
Method
with_env
(&mut self, key: K, val: V)
src/executable/runner.rs:40
↓ 1 callers
Method
build
(&self, builder: Builder)
src/reporter.rs:49
↓ 1 callers
Method
build_inner
(&self, builder: &Builder)
src/reporter.rs:58
↓ 1 callers
Method
check_version
(&self)
src/executable/runner.rs:85
↓ 1 callers
Method
get_current_version
(&self)
src/executable/mod.rs:54
↓ 1 callers
Method
get_deps_file_contents
(&self)
src/builder.rs:399
↓ 1 callers
Method
get_name
Returns crate name.
src/source.rs:134
↓ 1 callers
Method
get_output_file_prefix
Returns PTX assmbly filename prefix.
src/source.rs:104
↓ 1 callers
Method
get_output_path
Returns temporary crate build location.
src/source.rs:144
↓ 1 callers
Method
get_path
Returns crate root path.
src/source.rs:139
↓ 1 callers
Method
get_required_version
(&self)
src/executable/mod.rs:50
↓ 1 callers
Method
get_verification_hint
(&self)
src/executable/mod.rs:42
↓ 1 callers
Method
get_version_hint
(&self)
src/executable/mod.rs:46
↓ 1 callers
Method
prepare_output
(&self, output_path: PathBuf, cargo_stderr: &str)
src/builder.rs:243
↓ 1 callers
Method
set_profile
Set build profile.
src/builder.rs:150
Method
analyse
Try to locate a crate at the `path` and collect needed information.
src/source.rs:32
Method
backtrace
(&self)
src/error.rs:58
Function
breakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/faulty-crate/src/lib.rs:10
Function
breakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/mixed-crate/src/lib.rs:13
Function
breakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/app-crate/src/main.rs:13
Function
breakpoint_panic_handler
(_: &::core::panic::PanicInfo)
tests/fixtures/sample-crate/src/lib.rs:13
Method
cause
(&self)
src/error.rs:54
Method
deref
(&self)
src/builder.rs:441
Method
disable_colors
Controls whether colors should be used in the error log.
src/reporter.rs:115
Function
dummy_panic_handler
(_info: &::core::panic::PanicInfo)
tests/fixtures/mixed-crate/src/main.rs:18
Method
fmt
(&self, f: &mut fmt::Formatter)
src/reporter.rs:137
Method
fmt
(&self, formatter: &mut fmt::Formatter)
src/error.rs:64
Method
fmt
(&self, f: &mut fmt::Formatter)
src/builder.rs:425
Method
from
(kind: BuildErrorKind)
src/error.rs:76
Method
get_current_version
Returns the current version of the executable.
src/executable/mod.rs:23
Method
get_hash
(&self)
src/source.rs:154
Method
get_name
(&self)
tests/executable.rs:50
Method
get_required_version
(&self)
tests/executable.rs:62
Method
get_verification_hint
(&self)
tests/executable.rs:54
Method
get_version_hint
(&self)
tests/executable.rs:58
Method
is_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
Method
load_cached_build_command
(output_path: &Path)
src/builder.rs:294
Function
main
()
tests/fixtures/mixed-crate/src/main.rs:8
Method
name
(&self)
src/error.rs:50
Method
new
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
Method
new
(executable: Ex)
src/executable/runner.rs:24
Method
output_is_not_verbose
(line: &&str)
src/builder.rs:286
Method
prefix_each_line
(self, prefix: T)
src/reporter.rs:128
Method
print
Creates instance of the printer.
src/reporter.rs:107
Function
should_build_application_crate
()
tests/builder.rs:66
Function
should_build_mixed_crate_bin
()
tests/builder.rs:129
Function
should_build_mixed_crate_lib
()
tests/builder.rs:94
Function
should_check_existence_of_crate_path
()
src/source.rs:251
Function
should_check_exit_code
()
tests/executable.rs:21
Function
should_check_validity_of_crate_path
()
src/source.rs:264
Function
should_find_app_crate_names
()
src/source.rs:194
Function
should_find_crate_names
()
src/source.rs:163
Function
should_find_mixed_crate_names
()
src/source.rs:225
Function
should_handle_rebuild_without_changes
()
tests/builder.rs:164
Function
should_not_get_built_from_rls
()
tests/builder.rs:357
Function
should_not_get_built_recursively
()
tests/builder.rs:373
Function
should_not_provide_output
()
tests/executable.rs:68
Function
should_provide_application_crate_source_files
()
tests/builder.rs:322
Function
should_provide_crate_source_files
()
tests/builder.rs:287
Function
should_provide_output
()
tests/executable.rs:10
Function
should_provide_output_path
()
src/source.rs:277
Function
should_provide_output_path
()
tests/builder.rs:18
Function
should_report_about_build_failure
()
tests/builder.rs:231
Function
should_report_in_cargo_style
()
tests/reporter.rs:7
Function
should_write_assembly
()
tests/builder.rs:38
Function
should_write_assembly_in_debug_mode
()
tests/builder.rs:198
Method
store_cached_build_command
(output_path: &Path, command: &str)
src/builder.rs:301
Function
the_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/faulty-crate/src/lib.rs:5
Function
the_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/mixed-crate/src/main.rs:13
Function
the_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/mixed-crate/src/lib.rs:8
Function
the_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/app-crate/src/main.rs:8
Function
the_kernel
(x: *const f64, y: *mut f64, a: f64)
tests/fixtures/sample-crate/src/lib.rs:8
Method
with_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