content: [package]
  name = "txtx-lsp"
  version = { workspace = true }
  edition = { workspace = true }
  license = { workspace = true }
  repository = { workspace = true }
  keywords = { workspace = true }
  categories = { workspace = true }
  
  [dependencies]
  lazy_static = "1.4.0"
  lsp-types = "0.94.0"
  regex = "1.7"
  serde = { version = "1", features = ["derive"] }
  serde_json = "1.0"
  txtx-addon-kit = { workspace = true, default-features = false }
  txtx-core = { workspace = true, default-features = false }
  txtx-addon-network-evm = { workspace = true }
  txtx-addon-telegram = { workspace = true }
  
  # WASM
  console_error_panic_hook = { version = "0.1", optional = true }
  js-sys = { version = "0.3", optional = true }
  serde-wasm-bindgen = { version = "0.6.4", optional = true }
  wasm-bindgen = { version = "0.2.91", optional = true }
  wasm-bindgen-futures = { version = "0.4.41", optional = true }
  web-sys = { version = "0.3", features = ["console"], optional = true }
  
  [features]
  default = [
    "txtx-core/default",
    "txtx-addon-network-evm/default",
  ]
  wasm = [
    "wasm-bindgen",
    "wasm-bindgen-futures",
    "serde-wasm-bindgen",
    "js-sys",
    "web-sys",
    "console_error_panic_hook",
    "txtx-core/wasm",
    "txtx-addon-network-evm/wasm",
  ]
  
  [lib]
  crate-type = ["cdylib", "rlib"]
  name = "txtx_lsp"
  path = "src/lib.rs"
  
  [package.metadata.wasm-pack.profile.dev]
  wasm-opt = ['-O1']
  
  [package.metadata.wasm-pack.profile.dev.wasm-bindgen]
  debug-js-glue = true
  demangle-name-section = true
  dwarf-debug-info = false
  
  [package.metadata.wasm-pack.profile.profiling]
  wasm-opt = ['-O']
  
  [package.metadata.wasm-pack.profile.profiling.wasm-bindgen]
  debug-js-glue = false
  demangle-name-section = true
  dwarf-debug-info = false
  
  [package.metadata.wasm-pack.profile.release]
  # -04  aggressively optimizes for speed
  wasm-opt = ['-O4']
  # -0z aggressively optimizes for size
  # wasm-opt = ['-Oz']
  
  [package.metadata.wasm-pack.profile.release.wasm-bindgen]
  debug-js-glue = false
  demangle-name-section = true
  dwarf-debug-info = false
  