For most of Western Civilization there were really only two options for crime. Either a hard labor penal term that would justifying them keeping you alive or death. There were no prisons, other than for political prisoners (think the Bastille or the Tower of London) or debtors. Prisons for felonies did not really occur until the 19th Century, mostly in the eastern cities.
On the Western frontier justice was swift and generally involved hanging. Trials were for cities and towns. Beyond civilization there was no time for that. If you killed, raped, stole valuables (like cattle or horses) you got hung.
Times do change. We now have liberal cities coddling heroin users (often on the tax payer dime). And by coddling I literally mean making it easy for people to indulge in heroin. There is no attempt anymore to get them off it. If it spills out onto sidewalks, well don't be so judgmental.
This is not going to turn out well. As bad as heroin is, methamphetamine is even worse (its users also tend to be more violent).
Other parts of the world do not tolerate this sort of behavior.
CNN: This is your baby on heroin