Installation

Add gukhanmun to your Cargo.toml:

cargo add gukhanmun

Or write the dependency by hand:

[dependencies]
gukhanmun = "0.1"

Feature flags

All features are enabled by default. Disable the ones you do not need to reduce compile time and binary size:

FeatureWhat it addsDefault
htmlHTML fragment conversionyes
markdownMarkdown conversionyes
fstFST dictionary backend (.gukfst files)yes
cdbCDB dictionary backend (.gukcdb files)yes
stdictBundled Standard Korean Dictionary (~3 MB)yes

To build without the bundled dictionary (useful when you supply your own):

[dependencies]
gukhanmun = { version = "0.1", default-features = false, features = ["fst"] }

To build a minimal plain-text-only binary:

[dependencies]
gukhanmun = { version = "0.1", default-features = false, features = ["stdict"] }