Cargo Features

[dependencies]
belajar_rust_crate_lib = { version = "0.1.0", default-features = false, features = ["all", "hello", "time", "greet"] }
default = hello

The hello feature is set by default whenever belajar_rust_crate_lib is added without default-features = false somewhere in the dependency tree.

all = greet, hello, time
hello default all?

Affects belajar_rust_crate_lib::say_hello

time all?

Affects belajar_rust_crate_lib::get_timestamp

greet all?

Affects belajar_rust_crate_lib::say_greeting