[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Adding a .deb for Edit/msedit.



> I think the developers should be maintaining their own crates.io listing.

I strongly agree and I will share your feedback. This looks like the
beginning of a conversation.

> Could you be more specific about the error you are seeing?

I just ran this test right now:

On Windows 11 I set up a new WSL container running a clean copy of
Debian. Then I did exactly the following:

# set up a brand new Debian/testing filesystem.
sudo apt-get update
sudo apt-get upgrade
sudo apt install debootstrap schroot systemd-container
sudo debootstrap testing ~/debian-testing
sudo systemd-nspawn -D ~/debian-testing

# get the Debian tools and the Microsoft source.
apt install cargo rustc wget
wget https://github.com/microsoft/edit/archive/refs/tags/v1.2.1.tar.gz
tar -xvf v1.2.1.tar.gz
cd edit-1.2.1

Then I used **pico** to edit the following files:
src/lib.rs:4-13 - Removed the #![feature()] block.

And then I ran: cargo build

Which produced:

error[E0658]: use of unstable library feature `allocator_api`
 --> src/arena/debug.rs:6:18
  |
6 | use std::alloc::{AllocError, Allocator, Layout};
  |                  ^^^^^^^^^^

As far as I understand, that means they didn't just leave obsolete
feature flags in their build settings, and that this indicates the
actual use of a feature that has not been flagged as stable yet. In
this case "AllocError."

I don't mind putting together a package if you want to reproduce this
using the team's tooling.


Reply to: