ATProto Browser

ATProto Browser

Experimental browser for the Atmosphere

Post

okay sneaking a compatibility check in `Deref` for `CowStr` seems to do the trick — not sure how that feature got flipped on in one of my crates but oh well. this is rubicon's beautiful "ABI's fucked" check btw: https://docs.rs/rubicon/latest/rubicon/macro.compatibility_check.html

Sep 17, 2024, 4:15 PM

Record data

{
  "cid": "bafyreigzgwsulmnhkmlg72fupuhtymwev5pmitzp7dxpxwrjxy6ndbymde",
  "uri": "at://did:plc:nzfarbv6rvnqei7j67vako7l/app.bsky.feed.post/3l4efzojgvik2",
  "value": {
    "$type": "app.bsky.feed.post",
    "bridgyOriginalText": "<p>okay sneaking a compatibility check in `Deref` for `CowStr` seems to do the trick — not sure how that feature got flipped on in one of my crates but oh well.</p><p>this is rubicon&#39;s beautiful &quot;ABI&#39;s fucked&quot; check btw: <a href=\"https://docs.rs/rubicon/latest/rubicon/macro.compatibility_check.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">docs.rs/rubicon/latest/rubicon</span><span class=\"invisible\">/macro.compatibility_check.html</span></a></p>",
    "bridgyOriginalUrl": "https://hachyderm.io/@fasterthanlime/113153782986934028",
    "createdAt": "2024-09-17T16:15:06.000Z",
    "embed": {
      "$type": "app.bsky.embed.images",
      "images": [
        {
          "$type": "app.bsky.embed.images#image",
          "alt": "The screenshot shows a Rust application crash message due to a feature mismatch for the crate `merde_core`. Specifically:\r\n\r\n- **Incompatibility**: The dynamic library `libmod_mother.dylib` has an incompatible configuration with the binary `lith` for the crate `merde_core`.\r\n- **Key differences**: There is a difference in the `compact_str` feature:\r\n  - In `lith`, `compact_str` is enabled.\r\n  - In `libmod_mother.dylib`, it is not enabled (denoted by `ø`).\r\n  \r\nThis mismatch could cause different struct layouts, leading to potential memory corruption. The application panicked to prevent that.\r\n\r\n- **Suggested fix**: The user should enable the same cargo features for `merde_core` in `libmod_mother.dylib` as in `lith`.\r\n- **Hint**: The user can run the following command to investigate:\r\n  ```\r\n  cargo tree -i merde_core -e features\r\n  ```\r\n- **More info**: A link to [https://crates.io/crates/rubicon](https://crates.io/crates/rubicon) is provided.\r\n\r\n- **File location**: The location of the issue is highlighted as `/Users/amos/.cargo/registry/src/.../merde_core-5.0.4/src/lib.rs:44`.\r\n",
          "image": {
            "$type": "blob",
            "ref": {
              "$link": "bafkreibh3pvz2ang2acgz7eddlgdmqlxb7vrnvaf35wxzliox65zh76q74"
            },
            "mimeType": "image/png",
            "size": 196230
          }
        }
      ]
    },
    "facets": [
      {
        "$type": "app.bsky.richtext.facet",
        "features": [
          {
            "$type": "app.bsky.richtext.facet#link",
            "uri": "https://docs.rs/rubicon/latest/rubicon/macro.compatibility_check.html"
          }
        ],
        "index": {
          "byteEnd": 284,
          "byteStart": 215
        }
      }
    ],
    "langs": [
      "en"
    ],
    "reply": {
      "$type": "app.bsky.feed.post#replyRef",
      "parent": {
        "cid": "bafyreidggj5ahxnyjqea77k5bdrifvfl63a2opzbz5fhcdzyilu2xhakhm",
        "uri": "at://did:plc:nzfarbv6rvnqei7j67vako7l/app.bsky.feed.post/3l4ednirzlrx2"
      },
      "root": {
        "cid": "bafyreib7kelzhifug3i6jhvvy34rzchlq2wmety62mqu3vouoc3xuseg3e",
        "uri": "at://did:plc:nzfarbv6rvnqei7j67vako7l/app.bsky.feed.post/3l4ecj6bmfxx2"
      }
    },
    "text": "okay sneaking a compatibility check in `Deref` for `CowStr` seems to do the trick — not sure how that feature got flipped on in one of my crates but oh well.\n\nthis is rubicon's beautiful \"ABI's fucked\" check btw: https://docs.rs/rubicon/latest/rubicon/macro.compatibility_check.html"
  }
}