{
  "id": "fn-core-extend",
  "dataComponent": "core",
  "heading": {
    "title": "extend",
    "badges": [
      "Core",
      "Dynamic"
    ]
  },
  "synopsis": "Loads component at runtime by name, then registers its bridging functions into the interpreter.",
  "codeBlocks": [
    "# Load a component by base name:\nextend(\"net\")\n\n# This searches for a platform-specific library\n# e.g. libnet.so on Linux, net.dll on Windows, etc.\n\nThe the functions for that componet can not be calledd. See the rest of documentation for indivual components and usage."
  ],
  "notes": [
    "Calling `extend(...)` attempts to load and initialize the specified component’s library. On success, any bridging functions it provides become available in the current interpreter context.",
    "If the library fails to load or does not export a Cargo.lock function, an error is raised immediately.",
    "For details on usage of each loaded component’s functions, consult that component’s individual documentation entries."
  ]
}
