Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kryod/rustacean
/ functions
Functions
255 in github.com/Kryod/rustacean
⨍
Functions
255
◇
Types & classes
44
↓ 24 callers
Function
test_lang
(code: &str, lang: &str, ret_code: i32, ignore_compil_stdout: bool, ret_str: &str)
src/test.rs:4
↓ 10 callers
Method
get
(discord_user_id: UserId, db: &DbPoolType)
src/models.rs:50
↓ 8 callers
Method
get_lang_name
(&self)
src/commands/exec/c.rs:13
↓ 6 callers
Function
append_to_msg
(ctx: &Option<&mut Context>, msg: &mut Option<&mut Message>, line: &str)
src/commands/exec/mod.rs:139
↓ 6 callers
Method
is_over
(&self)
src/models.rs:156
↓ 5 callers
Function
format_code_output
(mut text: String, max_length: usize)
src/commands/exec/mod.rs:556
↓ 5 callers
Method
get_lang_name
(&self)
src/models.rs:231
↓ 5 callers
Method
is_language_available
(&self, lang: &Box<dyn Language + Sync + Send>)
src/lang_manager.rs:117
↓ 4 callers
Method
get_languages
(&self)
src/lang_manager.rs:147
↓ 4 callers
Function
pre_process_output
(mut output: String)
src/commands/exec/mod.rs:103
↓ 4 callers
Function
set_game_presence
(ctx: &Context, game_name: &str)
src/main.rs:496
↓ 3 callers
Function
get_command_prefix
(ctx: &Context)
src/main.rs:475
↓ 3 callers
Function
init_settings
()
src/main.rs:312
↓ 3 callers
Method
is_banned_for_guild
(&self, msg_guild: Option<GuildId>)
src/models.rs:216
↓ 2 callers
Method
check_available_languages
(&mut self)
src/lang_manager.rs:201
↓ 2 callers
Function
do_request
(endpoint: &str, api_key: &str, data: Option<HashMap<&str, String>>)
src/dbl/mod.rs:50
↓ 2 callers
Method
get
(&self, lang: &str)
src/lang_manager.rs:106
↓ 2 callers
Method
get_class_name
(&self, src_path: &PathBuf)
src/commands/exec/java.rs:9
↓ 2 callers
Method
get_guild
(&self)
src/models.rs:139
↓ 2 callers
Method
get_id
(&self)
src/models.rs:42
↓ 2 callers
Function
get_lang
(lang_manager: &LangManager, lang_code: &str)
src/commands/exec/mod.rs:114
↓ 2 callers
Method
get_languages_list
(&self)
src/lang_manager.rs:134
↓ 2 callers
Function
get_snippets_directory
()
src/commands/exec/mod.rs:585
↓ 2 callers
Function
run_code
( settings: &Settings, mut code: String, lang: BoxedLang, author: UserId, ctx: Option<&mut
src/commands/exec/mod.rs:148
↓ 2 callers
Function
run_command
(cmd: Expression, timeout_seconds: u64)
src/commands/exec/mod.rs:620
↓ 2 callers
Function
update
(migration_dir: &str, url: &str)
src/tools/update_db.rs:3
↓ 2 callers
Function
update_db
Runs database update scripts if necessary. Use it with `cargo run update-db`. This command should be used after pulling from the repository.
src/tools/update_db.rs:21
↓ 1 callers
Method
add_ready
(&mut self)
src/tools/print_guilds.rs:33
↓ 1 callers
Method
all_ready
(&self)
src/tools/print_guilds.rs:37
↓ 1 callers
Method
ban
(&self, db: &DbPoolType, ban_end: Option<NaiveDateTime>, ban_on_guild: Option<GuildId>)
src/models.rs:74
↓ 1 callers
Function
build_images
Build all images for the referenced languages. Use it with `cargo run build-images`. This command should be used after pulling from the repository.
src/tools/build_images.rs:8
↓ 1 callers
Function
cargo_test_thread
(settings: Settings)
src/main.rs:141
↓ 1 callers
Method
check_languages_versions
(&mut self)
src/lang_manager.rs:151
↓ 1 callers
Method
enabled
(&self, metadata: &Metadata)
src/file_logger.rs:23
↓ 1 callers
Method
get_class_name
(&self, src_path: &PathBuf)
src/commands/exec/kotlin.rs:9
↓ 1 callers
Method
get_compiler
(&self)
src/commands/exec/vb.rs:9
↓ 1 callers
Method
get_compiler_command
(&self, src_path: &PathBuf, exe_path: &PathBuf)
src/commands/exec/c.rs:33
↓ 1 callers
Method
get_discord_id
(&self)
src/models.rs:46
↓ 1 callers
Method
get_execution_command
(&self, path: &PathBuf)
src/commands/exec/vb.rs:64
↓ 1 callers
Function
get_guilds
(ctx: &Context)
src/main.rs:294
↓ 1 callers
Method
get_image_name
(&self)
src/commands/exec/c.rs:9
↓ 1 callers
Method
get_language_version
(&self, lang: &Box<dyn Language + Sync + Send>)
src/lang_manager.rs:124
↓ 1 callers
Method
get_logo_url
(&self)
src/commands/exec/language.rs:21
↓ 1 callers
Method
get_out_path
(&self, src_path: &PathBuf)
src/commands/exec/java.rs:57
↓ 1 callers
Function
get_random_filename
(ext: &str)
src/commands/exec/mod.rs:568
↓ 1 callers
Function
get_snippets_directory_for_user
(user: UserId)
src/commands/exec/mod.rs:596
↓ 1 callers
Method
get_snippets_executed
(&self)
src/models.rs:235
↓ 1 callers
Method
get_source_file_ext
(&self)
src/commands/exec/c.rs:17
↓ 1 callers
Function
get_test_settings
()
src/test.rs:52
↓ 1 callers
Method
get_user
(&self, db: &DbPoolType)
src/models.rs:130
↓ 1 callers
Method
increment_snippets_count
(&mut self, db: &DbPoolType)
src/models.rs:262
↓ 1 callers
Function
init_logging
(settings: &Settings)
src/main.rs:320
↓ 1 callers
Method
is_global
(&self)
src/models.rs:221
↓ 1 callers
Method
is_permanent
(&self)
src/models.rs:152
↓ 1 callers
Method
level
(&self)
src/file_logger.rs:63
↓ 1 callers
Function
parsing
(args: Vec<String>)
src/commands/logs.rs:26
↓ 1 callers
Function
post_stats
(bot_id: UserId, api_key: &str, server_count: usize)
src/dbl/mod.rs:37
↓ 1 callers
Function
pre_process_code
(mut code: String)
src/commands/exec/mod.rs:96
↓ 1 callers
Method
pre_process_code
(&self, code: &str, _src_path: &PathBuf)
src/commands/exec/c.rs:21
↓ 1 callers
Function
presence_status_thread
(user_id: UserId, ctx: Arc<Mutex<Context>>)
src/main.rs:106
↓ 1 callers
Function
print_guilds
()
src/tools/print_guilds.rs:63
↓ 1 callers
Function
save_code
(code: &str, author: UserId, ext: &str)
src/commands/exec/mod.rs:606
↓ 1 callers
Function
set_game_presence_exec
(ctx: &Context)
src/main.rs:491
↓ 1 callers
Function
set_game_presence_help
(ctx: &Context)
src/main.rs:481
↓ 1 callers
Function
set_game_presence_languages
(ctx: &Context)
src/main.rs:486
↓ 1 callers
Method
set_language_available
(&mut self, lang: String, availability: bool)
src/lang_manager.rs:248
↓ 1 callers
Method
set_total
(&mut self, total: usize)
src/tools/print_guilds.rs:28
↓ 1 callers
Function
snippets_cleanup_thread
()
src/main.rs:256
↓ 1 callers
Function
tools
()
src/tools/mod.rs:7
↓ 1 callers
Method
unban
(&self, msg_guild: GuildId, lift_globally: bool, db: &DbPoolType)
src/models.rs:102
Function
admin_check
(ctx: &mut Context, msg: &Message, _: &mut Args, _: &CommandOptions)
src/main.rs:356
Method
as_log
(self: Box<Self>)
src/file_logger.rs:71
Function
ban
(ctx: &mut Context, msg: &Message, mut args: Args)
src/commands/ban.rs:21
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/rust.rs:41
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/kotlin.rs:70
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/asmx64.rs:42
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/lua.rs:35
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/c.rs:41
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/java.rs:69
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/prolog.rs:26
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/shell.rs:25
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/haskell.rs:29
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/python.rs:35
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/vb.rs:72
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/cpp.rs:44
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/go.rs:25
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/ruby.rs:31
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/asmx86.rs:42
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/ocaml.rs:25
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/csharp.rs:79
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/php.rs:35
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/typescript.rs:33
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/javascript.rs:35
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/pony.rs:57
Method
check_compiler_or_interpreter
(&self)
src/commands/exec/julia.rs:25
Method
cleanup_outdated_bans
(db: &DbPoolType)
src/models.rs:172
Method
config
(&self)
src/file_logger.rs:67
Method
default
()
src/lang_manager.rs:20
Function
exec
(ctx: &mut Context, msg: &Message)
src/commands/exec/mod.rs:329
Method
flush
(&self)
src/file_logger.rs:59
next →
1–100 of 255, ranked by callers